更新:2007 年 11 月
用于生成并比较应用程序标识和引用的键的方法。
interface IAppIdAuthority : IUnknown {
[v1_enum]
enum IAPPIDAUTHORITY_ARE_DEFINITIONS_EQUAL_FLAGS {
IAPPIDAUTHORITY_ARE_DEFINITIONS_EQUAL_FLAG_IGNORE_VERSION
= 0x00000001,
};
HRESULT AreDefinitionsEqual (
[in] DWORD dwFlags,
[in] IDefinitionAppId *pDefinition1,
[in] IDefinitionAppId *pDefinition2,
[out] BOOL *pfAreEqual
);
[v1_enum]
enum IAPPIDAUTHORITY_ARE_REFERENCES_EQUAL_FLAGS {
IAPPIDAUTHORITY_ARE_REFERENCES_EQUAL_FLAG_IGNORE_VERSION
= 0x00000001,
};
HRESULT AreReferencesEqual (
[in] DWORD dwFlags,
[in] IReferenceAppId *pReference1,
[in] IReferenceAppId *pReference2,
[out] BOOL *pfAreEqual
);
HRESULT AreTextualDefinitionsEqual (
[in] DWORD dwFlags,
[in] LPCWSTR pszAppIdLeft,
[in] LPCWSTR pszAppIdRight,
[out] BOOL *pfAreEqual
);
HRESULT AreTextualReferencesEqual (
[in] DWORD dwFlags,
[in] LPCWSTR pszAppIdLeft,
[in] LPCWSTR pszAppIdRight,
[out] BOOL *pfAreEqual
);
HRESULT CreateDefinition (
[out, retval] IDefinitionAppId **ppNewIdentity
);
HRESULT CreateReference (
[out, retval] IReferenceAppId **ppNewIdentity
);
HRESULT DefinitionToText (
[in] DWORD dwFlags,
[in] IDefinitionAppId *pIDefinitionAppId,
[out] LPWSTR *ppszFormattedIdentity
);
HRESULT DoesDefinitionMatchReference (
[in] DWORD dwFlags,
[in] IDefinitionAppId *pIDefinitionIdentity,
[in] IReferenceAppId *pIReferenceIdentity,
[out] BOOL *pfMatches
);
HRESULT DoesTextualDefinitionMatchTextualReference (
[in] DWORD dwFlags,
[in] LPCWSTR pszDefinition,
[in] LPCWSTR pszReference,
[out] BOOL *pfMatches
);
HRESULT GenerateDefinitionKey (
[in] DWORD dwFlags,
[in] IDefinitionAppId *pIDefinitionIdentity,
[out] LPWSTR *ppszKeyForm
);
HRESULT GenerateReferenceKey (
[in] DWORD dwFlags,
[in] IReferenceAppId *pIReferenceIdentity,
[out] LPWSTR *ppszKeyForm
);
HRESULT HashDefinition (
[in] DWORD dwFlags,
[in] IDefinitionAppId *pIDefinitionIdentity,
[out] ULONGLONG *pullPseudoKey
);
HRESULT HashReference (
[in] DWORD dwFlags,
[in] IReferenceAppId *pIReferenceIdentity,
[out] ULONGLONG *pullPseudoKey
);
HRESULT ReferenceToText (
[in] DWORD dwFlags,
[in] IReferenceAppId *pIReferenceAppId,
[out] LPWSTR *ppszFormattedIdentity
);
HRESULT TextToDefinition (
[in] DWORD dwFlags,
[in] LPCWSTR pszIdentity,
[out] IDefinitionAppId **ppIDefinitionAppId
);
HRESULT TextToReference (
[in] DWORD dwFlags,
[in] LPCWSTR pszIdentity,
[out] IReferenceAppId **ppIReferenceAppId
);
};
方法
方法 |
说明 |
---|---|
IAppIdAuthority::AreDefinitionsEqual |
获取一个值,用于指示两个指定的 IDefinitionAppId 实例是否相同。可以通过传递标志值 IAPPIDAUTHORITY_ARE_DEFINITIONS_EQUAL_FLAG_IGNORE_VERSION 忽略各自的版本信息。 |
IAppIdAuthority::AreReferencesEqual |
获取一个值,用于指示两个指定的 IReferenceAppId 实例是否相同。可以通过传递标志值 IAPPIDAUTHORITY_ARE_REFERENCES_EQUAL_FLAG_IGNORE_VERSION 忽略各自的版本信息。 |
IAppIdAuthority::AreTextualDefinitionsEqual |
获取一个值,用于指示两个指定的字符串定义是否相同。可以通过传递标志值 IAPPIDAUTHORITY_ARE_DEFINITIONS_EQUAL_FLAG_IGNORE_VERSION 忽略各自的版本信息。 |
IAppIdAuthority::AreTextualReferencesEqual |
获取一个值,用于指示两个指定的字符串引用是否相同。可以通过传递标志值 IAPPIDAUTHORITY_ARE_REFERENCES_EQUAL_FLAG_IGNORE_VERSION 忽略各自的版本信息。 |
IAppIdAuthority::CreateDefinition |
获取一个指向新生成的 IDefinitionAppId 实例的接口指针。该实例表示当前范围内的程序集。 |
IAppIdAuthority::CreateReference |
获取一个指向新建的 IReferenceAppId 实例的接口指针。该实例表示当前范围内的程序集。 |
IAppIdAuthority::DefinitionToText |
使用指定的标志值获取一个指定的 IDefinitionAppId 的字符串版本。 |
IAppIdAuthority::DoesDefinitionMatchReference |
获取一个值,用于指示指定的 IDefinitionAppId 和 IReferenceAppId 是否表示同一个程序集。 |
IAppIdAuthority::DoesTextualDefinitionMatchTextualReference |
获取一个值,用于指示指定的定义字符串和引用字符串是否表示同一个程序集。 |
IAppIdAuthority::GenerateDefinitionKey |
获取一个字符串键,该键表示指定的 IDefinitionAppId 实例。 |
IAppIdAuthority::GenerateReferenceKey |
获取一个字符串键,该键表示指定的 IReferenceAppId 实例。 |
IAppIdAuthority::HashDefinition |
获取一个指定的 IDefinitionAppId 实例的哈希键。 |
IAppIdAuthority::HashReference |
获取一个指定的 IReferenceAppId 实例的哈希键。 |
IAppIdAuthority::ReferenceToText |
使用指定的标志值获取一个指定的 IReferenceAppId 的字符串版本。 |
IAppIdAuthority::TextToDefinition |
获取一个指向 IDefinitionAppId 实例的接口指针。该实例表示指定的字符串键引用的程序集。 |
IAppIdAuthority::TextToReference |
获取一个指向 IReferenceAppId 实例的接口指针。该实例表示指定的字符串键引用的程序集。 |
要求
**平台:**请参见 .NET Framework 系统要求。
**头文件:**Isolation.h
**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0