C# Class Dev2.Reflection.GAC

显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
CreateAssemblyCache ( ) : IAssemblyCache

Use this method as a start for the GAC API

CreateAssemblyName ( string name ) : IAssemblyName
CreateGACEnum ( ) : IAssemblyEnum
GetCulture ( IAssemblyName name ) : CultureInfo
GetDisplayName ( IAssemblyName name, ASM_DISPLAY_FLAGS which ) : String
GetDownloadPath ( ) : String
GetGACPath ( ) : String
GetName ( IAssemblyName name ) : String
GetNextAssembly ( IAssemblyEnum enumerator, IAssemblyName &name ) : int

Get the next assembly name in the current enumerator or fail

GetPublicKey ( IAssemblyName name ) : byte[]
GetPublicKeyToken ( IAssemblyName name ) : byte[]
GetVersion ( IAssemblyName name ) : System.Version
GetZapPath ( ) : String
RebuildGACAssemblyCache ( bool forceRebuild ) : bool
TryResolveGACAssembly ( string displayName ) : GACAssemblyName
TryResolveGACAssembly ( string name, string culture, string version, string publicKeyToken ) : string

Private Methods

Method Description
CreateAssemblyCache ( IAssemblyCache &ppAsmCache, uint dwReserved ) : void
CreateAssemblyEnum ( IAssemblyEnum &pEnum, IntPtr pUnkReserved, IAssemblyName pName, ASM_CACHE_FLAGS dwFlags, IntPtr pvReserved ) : void
CreateAssemblyNameObject ( IAssemblyName &ppAssemblyNameObj, string szAssemblyName, uint dwFlags, IntPtr pvReserved ) : void
CreateInstallReferenceEnum ( IInstallReferenceEnum &ppRefEnum, IAssemblyName pName, uint dwFlags, IntPtr pvReserved ) : void
GetCachePath ( ASM_CACHE_FLAGS dwCacheFlags, [ pwzCachePath, uint &pcchPath ) : void
GetGACAssemblies ( string name ) : Dev2.Reflection.GACAssemblyName[]

Method Details

CreateAssemblyCache() public static method

Use this method as a start for the GAC API
public static CreateAssemblyCache ( ) : IAssemblyCache
return IAssemblyCache

CreateAssemblyName() public static method

public static CreateAssemblyName ( string name ) : IAssemblyName
name string
return IAssemblyName

CreateGACEnum() public static method

public static CreateGACEnum ( ) : IAssemblyEnum
return IAssemblyEnum

GetCulture() public static method

public static GetCulture ( IAssemblyName name ) : CultureInfo
name IAssemblyName
return System.Globalization.CultureInfo

GetDisplayName() public static method

public static GetDisplayName ( IAssemblyName name, ASM_DISPLAY_FLAGS which ) : String
name IAssemblyName
which ASM_DISPLAY_FLAGS
return String

GetDownloadPath() public static method

public static GetDownloadPath ( ) : String
return String

GetGACPath() public static method

public static GetGACPath ( ) : String
return String

GetName() public static method

public static GetName ( IAssemblyName name ) : String
name IAssemblyName
return String

GetNextAssembly() public static method

Get the next assembly name in the current enumerator or fail
public static GetNextAssembly ( IAssemblyEnum enumerator, IAssemblyName &name ) : int
enumerator IAssemblyEnum
name IAssemblyName
return int

GetPublicKey() public static method

public static GetPublicKey ( IAssemblyName name ) : byte[]
name IAssemblyName
return byte[]

GetPublicKeyToken() public static method

public static GetPublicKeyToken ( IAssemblyName name ) : byte[]
name IAssemblyName
return byte[]

GetVersion() public static method

public static GetVersion ( IAssemblyName name ) : System.Version
name IAssemblyName
return System.Version

GetZapPath() public static method

public static GetZapPath ( ) : String
return String

RebuildGACAssemblyCache() public static method

public static RebuildGACAssemblyCache ( bool forceRebuild ) : bool
forceRebuild bool
return bool

TryResolveGACAssembly() public static method

public static TryResolveGACAssembly ( string displayName ) : GACAssemblyName
displayName string
return GACAssemblyName

TryResolveGACAssembly() public static method

public static TryResolveGACAssembly ( string name, string culture, string version, string publicKeyToken ) : string
name string
culture string
version string
publicKeyToken string
return string