StrongNameIdentityPermission.PublicKey 屬性

定義

取得或設定定義強式名稱識別命名空間的公開金鑰 Blob。Gets or sets the public key blob that defines the strong name identity namespace.

public:
 property System::Security::Permissions::StrongNamePublicKeyBlob ^ PublicKey { System::Security::Permissions::StrongNamePublicKeyBlob ^ get(); void set(System::Security::Permissions::StrongNamePublicKeyBlob ^ value); };
public System.Security.Permissions.StrongNamePublicKeyBlob PublicKey { get; set; }
member this.PublicKey : System.Security.Permissions.StrongNamePublicKeyBlob with get, set
Public Property PublicKey As StrongNamePublicKeyBlob

屬性值

StrongNamePublicKeyBlob

包含識別公開金鑰的 StrongNamePublicKeyBlob ,或如果沒有金鑰,則為 nullA StrongNamePublicKeyBlob that contains the public key of the identity, or null if there is no key.

例外狀況

屬性值設為 nullThe property value is set to null.

無法擷取屬性值,因為它包含模稜兩可的身分識別。The property value cannot be retrieved because it contains an ambiguous identity.

適用於