DirectoryEntry.NativeGuid Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan GUID dari , seperti yang DirectoryEntrydikembalikan dari penyedia.
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
Nilai Properti
Struktur Guid yang mewakili GUID , seperti yang DirectoryEntrydikembalikan dari penyedia.
- Atribut
Contoh
Contoh berikut menunjukkan Guid properti dan NativeGuid kelas DirectoryEntry . Contoh ini mendapatkan yang ditentukan DirectoryEntry pengguna dan menampilkan properti dan NativeGuid miliknyaGuid.
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);
Keterangan
NativeGuid Gunakan properti saat mengikat objek di Active Directory Domain Services.
Nota
Penyedia Lightweight Directory Access Protocol (LDAP) mengembalikan pengidentifikasi unik global dalam format yang DirectoryEntry berbeda dari penyedia Internet Information Services (IIS), Novell NetWare Directory Server (NDS), dan WinNT.