NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DirectoryEntryCollection.Create

Creates a request to create a new entry in the container.

[Visual Basic]
Public Function Create( _
   ByVal name As String, _
   ByVal schemaClassName As String _
) As DirectoryEntry
[C#]
public DirectoryEntry Create(
   string name,
   string schemaClassName
);
[C++]
public: DirectoryEntry* Create(
   String* name,
   String* schemaClassName
);
[JScript]
public function Create(
   name : String,
   schemaClassName : String
) : DirectoryEntry;

Parameters

name
[To be supplied.]
schemaClassName
[To be supplied.]

Return Value

A DirectoryEntry that represents the new entry.

Exceptions

Exception Type Condition
COMException The DirectoryEntry already exists. The associated error code is E_ADS_OBJECT_EXISTS.

Remarks

Note   You must call the CommitChanges method on the new entry to make the creation persistent.

This allows for creation of mandatory property values on the new entry.

See Also

DirectoryEntryCollection Class | DirectoryEntryCollection Members | System.DirectoryServices Namespace | DirectoryEntry