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
Guid Struktur yang mewakili GUID dari DirectoryEntry, seperti yang dikembalikan 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 .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);
Keterangan
NativeGuid Gunakan properti saat mengikat objek di Active Directory Domain Services.
Catatan
Penyedia Lightweight Directory Access Protocol (LDAP) mengembalikan pengidentifikasi DirectoryEntry unik global dalam format yang berbeda dari penyedia Internet Information Services (IIS), Novell NetWare Directory Server (NDS), dan WinNT.
Berlaku untuk
Lihat juga
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk