C# Class Dev2.Common.Reflection.GAC

显示文件 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CreateAssemblyCache ( ) : IAssemblyCache

Use this method as a start for the GAC API

CreateAssemblyName ( string name ) : IAssemblyName

Creates the name of the assembly.

CreateGACEnum ( ) : IAssemblyEnum

Creates the GAC enum.

GetCulture ( IAssemblyName name ) : CultureInfo

Gets the culture.

GetDisplayName ( IAssemblyName name, ASM_DISPLAY_FLAGS which ) : String

Gets the display name.

GetDownloadPath ( ) : String

Gets the download path.

GetGACPath ( ) : String

Gets the GAC path.

GetName ( IAssemblyName name ) : String

Gets the name.

GetNextAssembly ( IAssemblyEnum enumerator, IAssemblyName &name ) : int

Get the next assembly name in the current enumerator or fail

GetPublicKey ( IAssemblyName name ) : byte[]

Gets the public key.

GetPublicKeyToken ( IAssemblyName name ) : byte[]

Gets the public key token.

GetVersion ( IAssemblyName name ) : System.Version

Gets the version.

GetZapPath ( ) : String

Gets the zap path.

RebuildGACAssemblyCache ( bool forceRebuild ) : bool

Rebuilds the GAC assembly cache.

TryResolveGACAssembly ( string displayName ) : GACAssemblyName

Tries the resolve GAC assembly.

TryResolveGACAssembly ( string name, string culture, string version, string publicKeyToken ) : string

Tries the resolve GAC assembly.

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
GetCachePath ( ASM_CACHE_FLAGS dwCacheFlags, [ pwzCachePath, uint &pcchPath ) : void
GetGACAssemblies ( string name ) : Dev2.Common.Reflection.GACAssemblyName[]

Gets the GAC assemblies.

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

Creates the name of the assembly.
public static CreateAssemblyName ( string name ) : IAssemblyName
name string The name.
return IAssemblyName

CreateGACEnum() public static method

Creates the GAC enum.
public static CreateGACEnum ( ) : IAssemblyEnum
return IAssemblyEnum

GetCulture() public static method

Gets the culture.
public static GetCulture ( IAssemblyName name ) : CultureInfo
name IAssemblyName The name.
return System.Globalization.CultureInfo

GetDisplayName() public static method

Gets the display name.
public static GetDisplayName ( IAssemblyName name, ASM_DISPLAY_FLAGS which ) : String
name IAssemblyName The name.
which ASM_DISPLAY_FLAGS The which.
return String

GetDownloadPath() public static method

Gets the download path.
public static GetDownloadPath ( ) : String
return String

GetGACPath() public static method

Gets the GAC path.
public static GetGACPath ( ) : String
return String

GetName() public static method

Gets the name.
public static GetName ( IAssemblyName name ) : String
name IAssemblyName The name.
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

Gets the public key.
public static GetPublicKey ( IAssemblyName name ) : byte[]
name IAssemblyName The name.
return byte[]

GetPublicKeyToken() public static method

Gets the public key token.
public static GetPublicKeyToken ( IAssemblyName name ) : byte[]
name IAssemblyName The name.
return byte[]

GetVersion() public static method

Gets the version.
public static GetVersion ( IAssemblyName name ) : System.Version
name IAssemblyName The name.
return System.Version

GetZapPath() public static method

Gets the zap path.
public static GetZapPath ( ) : String
return String

RebuildGACAssemblyCache() public static method

Rebuilds the GAC assembly cache.
public static RebuildGACAssemblyCache ( bool forceRebuild ) : bool
forceRebuild bool if set to true [force rebuild].
return bool

TryResolveGACAssembly() public static method

Tries the resolve GAC assembly.
public static TryResolveGACAssembly ( string displayName ) : GACAssemblyName
displayName string The display name.
return GACAssemblyName

TryResolveGACAssembly() public static method

Tries the resolve GAC assembly.
public static TryResolveGACAssembly ( string name, string culture, string version, string publicKeyToken ) : string
name string The name.
culture string The culture.
version string The version.
publicKeyToken string The public key token.
return string