DirectoryEntry.SchemaEntry Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bu girdi için şema nesnesini alır.
public:
property System::DirectoryServices::DirectoryEntry ^ SchemaEntry { System::DirectoryServices::DirectoryEntry ^ get(); };
public System.DirectoryServices.DirectoryEntry SchemaEntry { get; }
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSSchemaEntry")]
public System.DirectoryServices.DirectoryEntry SchemaEntry { get; }
member this.SchemaEntry : System.DirectoryServices.DirectoryEntry
[<System.ComponentModel.Browsable(false)>]
[<System.DirectoryServices.DSDescription("DSSchemaEntry")>]
member this.SchemaEntry : System.DirectoryServices.DirectoryEntry
Public ReadOnly Property SchemaEntry As DirectoryEntry
Özellik Değeri
DirectoryEntry Bu girdi için şema sınıfını temsil eden bir nesne.
- Öznitelikler
Örnekler
Aşağıdaki örnekte sınıfının ve SchemaClassName özellikleri gösterilmektedir.SchemaEntryDirectoryEntry Bu örnek, kullanıcı tarafından belirtilen DirectoryEntry nesneyi alır ve nesne bir kapsayıcı nesnesiyse SchemaEntry tüm alt öğelerini alır. SchemaEntry, bu nesnenin Name "kapsayıcı" olması durumunda bir kapsayıcı nesnesidir.
Dim myADSPath As String = "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam,DC=com"
' Creates an Instance of DirectoryEntry.
Dim myDirectoryEntry As New DirectoryEntry(myADSPath, UserName, SecurelyStoredPassword)
' Display the 'SchemaClassName'.
Console.WriteLine("Schema class name:" + myDirectoryEntry.SchemaClassName)
' Gets the SchemaEntry of the ADS object.
Dim mySchemaEntry As DirectoryEntry = myDirectoryEntry.SchemaEntry
If String.Compare(mySchemaEntry.Name, "container") = 0 Then
Dim myChildDirectoryEntry As DirectoryEntry
For Each myChildDirectoryEntry In myDirectoryEntry.Children
Console.WriteLine(myChildDirectoryEntry.Path)
Next
String myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam,DC=com";
// Creates an Instance of DirectoryEntry.
DirectoryEntry myDirectoryEntry=new DirectoryEntry(myADSPath, UserName, SecurelyStoredPassword);
// Display the 'SchemaClassName'.
Console.WriteLine("Schema class name:"+myDirectoryEntry.SchemaClassName);
// Gets the SchemaEntry of the ADS object.
DirectoryEntry mySchemaEntry = myDirectoryEntry.SchemaEntry;
if (string.Compare(mySchemaEntry.Name,"container") == 0)
{
foreach(DirectoryEntry myChildDirectoryEntry in myDirectoryEntry.Children)
Console.WriteLine(myChildDirectoryEntry.Path);
}
Açıklamalar
Girdinin şeması, zorunlu ve isteğe bağlı özellik adlarının listesini belirler.
İlişkili nesnede hangi özelliklerin ve yöntemlerin kullanılabilir olduğunu öğrenmek için bu özelliği kullanabilirsiniz.