DirectoryEntry.NativeGuid プロパティ

定義

プロバイダーが返す DirectoryEntry の GUID を取得します。

public:
 property System::String ^ NativeGuid { System::String ^ get(); };
public string NativeGuid { get; }
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSNativeGuid")]
public string NativeGuid { get; }
member this.NativeGuid : string
[<System.ComponentModel.Browsable(false)>]
[<System.DirectoryServices.DSDescription("DSNativeGuid")>]
member this.NativeGuid : string
Public ReadOnly Property NativeGuid As String

プロパティ値

プロバイダーが返す DirectoryEntry の GUID を表す Guid 構造体。

属性

次の例では、 クラスの Guid プロパティと NativeGuid プロパティを DirectoryEntry 示します。 この例では、ユーザー指定DirectoryEntryを取得し、その プロパティと NativeGuid プロパティをGuid表示します。

Dim myADSPath As [String] = "LDAP://onecity/CN=Users,  
             DC=onecity,DC=corp,DC=fabrikam,DC=com"  
Dim myDirectoryEntry As New DirectoryEntry(myADSPath)  

' Display the Guid and NativeGuid.  
Console.WriteLine("The GUID of the ADS object:" + myDirectoryEntry.Guid.ToString)  
Console.WriteLine("The Native GUID of the ADS" + "object:" +   
             myDirectoryEntry.NativeGuid)  
String myADSPath = "LDAP://onecity/CN=Users,  
             DC=onecity,DC=corp,DC=fabrikam,DC=com";  
DirectoryEntry myDirectoryEntry=new DirectoryEntry(myADSPath);  

// Display the Guid and NativeGuid.  
Console.WriteLine("The GUID of the ADS object:"+  
                  myDirectoryEntry.Guid);  
Console.WriteLine("The Native GUID of the ADS"+  
                  "object:"+myDirectoryEntry.NativeGuid);  
String^ myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam,DC=com";  
DirectoryEntry^ myDirectoryEntry = gcnew DirectoryEntry(myADSPath);  

// Display the Guid and NativeGuid.  
Console::WriteLine("The GUID of the ADS object: {0}", myDirectoryEntry->Guid));  
Console::WriteLine("The Native GUID of the ADS object: {0}",  
                   myDirectoryEntry->NativeGuid);  

注釈

Active Directory Domain ServicesでNativeGuidオブジェクトをバインドする場合は、 プロパティを使用します。

注意

ライトウェイト ディレクトリ アクセス プロトコル (LDAP) プロバイダーは、 のグローバル一意識別子 DirectoryEntry を、インターネット インフォメーション サービス (IIS)、Novell NetWare Directory Server (NDS)、WinNT プロバイダーとは異なる形式で返します。

適用対象

こちらもご覧ください