Freigeben über


IAssemblyName Interface

Provides methods for describing and working with an assembly's unique identity.

interface IAssemblyName : IUnknown {
    HRESULT Clone (
        [out] IAssemblyName **pName
    );
        
    HRESULT Finalize ();
        
    HRESULT GetDisplayName (
        [out]     LPOLESTR szDisplayName,
        [in, out] LPDWORD  pccDisplayName,
             [in]      DWORD    dwDisplayFlags
    );

    HRESULT GetName (
        [in, out] LPDWORD  lpcwBuffer,
        [out]     WCHAR    *pwzName
    );
        
    HRESULT GetProperty (
        [in]      DWORD    PropertyId,
        [out]     LPVOID   pvProperty,
        [in, out] LPDWORD  pcbProperty
    );
        
    HRESULT GetVersion (
        [out] LPDWORD  pdwVersionHi,
        [out] LPDWORD  pdwVersionLow
    );
        
    HRESULT IsEqual (
        [in] IAssemblyName *pName,
        [in] DWORD         dwCmpFlags
    );
        
    HRESULT SetProperty (
        [in] DWORD  PropertyId,
        [in] LPVOID pvProperty,
        [in] DWORD  cbProperty
    );
}

Methods

Method

Description

IAssemblyName::Clone Method

Creates a shallow copy of this IAssemblyName object.

IAssemblyName::Finalize Method

Allows this IAssemblyName object to release resources and perform other cleanup operations before its destructor is called.

IAssemblyName::GetDisplayName Method

Gets the human-readable name of the assembly referenced by this IAssemblyName object.

IAssemblyName::GetName Method

Gets the simple, unencrypted name of the assembly referenced by this IAssemblyName object.

IAssemblyName::GetProperty Method

Gets a pointer to the property referenced by the specified PropertyId.

IAssemblyName::GetVersion Method

Gets the version information for the assembly referenced by this IAssemblyName object.

IAssemblyName::IsEqual Method

Determines whether a specified IAssemblyName object is equal to this IAssemblyName, based on the specified comparison flags.

IAssemblyName::SetProperty Method

Sets the value of the property referenced by the specified PropertyId.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Fusion.h

.NET Framework Version: 2.0

See Also

Concepts

Fusion Interfaces

IAssemblyEnum Interface