DirectoryEntry.CopyTo Yöntem

Tanım

Bu girdinin bir kopyasını oluşturur.

Aşırı Yüklemeler

Name Description
CopyTo(DirectoryEntry)

Bu girdinin bir kopyasını belirtilen üst öğesinin alt öğesi olarak oluşturur.

CopyTo(DirectoryEntry, String)

Bu DirectoryEntry nesnenin, belirtilen üst DirectoryEntry nesnenin alt öğesi olarak, belirtilen yeni ada sahip bir kopyasını oluşturur.

CopyTo(DirectoryEntry)

Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs

Bu girdinin bir kopyasını belirtilen üst öğesinin alt öğesi olarak oluşturur.

public:
 System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent);
member this.CopyTo : System.DirectoryServices.DirectoryEntry -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry) As DirectoryEntry

Parametreler

newParent
DirectoryEntry

Oluşturulan kopyanın DirectoryEntry üst öğesi olacak nesnenin ayırt edici adı.

Döndürülenler

DirectoryEntry Bu girdinin kopyasını yeni üst öğenin alt öğesi olarak temsil eden nesne.

Özel durumlar

Belirtilen DirectoryEntry bir kapsayıcı değil.

Açıklamalar

ise UsePropertyCachetrue, kopyayı kalıcı hale getirmek için yeni nesneyi çağırın CommitChanges .

Basit Dizin Erişim Protokolü (LDAP) sağlayıcısı şu anda yöntemini desteklemiyor CopyTo(DirectoryEntry) .

Şunlara uygulanır

CopyTo(DirectoryEntry, String)

Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs
Kaynak:
DirectoryEntry.cs

Bu DirectoryEntry nesnenin, belirtilen üst DirectoryEntry nesnenin alt öğesi olarak, belirtilen yeni ada sahip bir kopyasını oluşturur.

public:
 System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string? newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string newName);
member this.CopyTo : System.DirectoryServices.DirectoryEntry * string -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry, newName As String) As DirectoryEntry

Parametreler

newParent
DirectoryEntry

Oluşturulan kopyanın DirectoryEntry üst öğesi olacak nesnenin DN'sini.

newName
String

Bu girdinin kopyasının adı.

Döndürülenler

Bu girdinin belirtilen üst öğesinin alt öğesi olarak yeniden adlandırılmış kopyası.

Özel durumlar

Belirtilen DirectoryEntry nesne bir kapsayıcı değil.

Açıklamalar

Basit Dizin Erişim Protokolü (LDAP) sağlayıcısı şu anda bu yöntemi desteklemiyor.

ise UsePropertyCachetrue, kopyayı kalıcı hale getirmek için yeni nesneyi çağırın CommitChanges .

Ayrıca bkz.

Şunlara uygulanır