CSEntry.CommitNewConnector Method
Finishes the process of creating a connector and adding it to the ConnectorCollection object. This method is not available in the ExportEntry method.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As CSEntry
instance.CommitNewConnector
Syntax
'Declaration
Public MustOverride Sub CommitNewConnector
public abstract void CommitNewConnector ()
public:
virtual void CommitNewConnector () abstract
public abstract void CommitNewConnector ()
public abstract function CommitNewConnector ()
Exceptions
Exception type | Condition |
---|---|
AttributeNotPresentException | The attributes that contribute to the anchor are not set. |
System.InvalidOperationException | The DN property on the new connector has not been set. |
MissingParentObjectException | The rules extension tried to add a connector that has a non-existent parent object. |
NoCompatiblePartitionFoundException | The rules extension tried to add a connector that does not file the filter criteria for any partitions of the management agent. |
ObjectAlreadyExistsException | The rules extension tried to add a connector, but a CSEntry object that has the specified distinguished name already exists in that connector space. |
Remarks
After creating the connector with the StartNewConnector method, call this method to add the new connector. If you do not call this method, the object is rolled back to the original attribute values.
Do not call this method when a management agent is in the process of being deleted.
Be aware that the attributes you set on the CSEntry object in the Provision method depend on the data source to which the metaverse entry attributes are exported.
Because different management agents require different (relative) distinguished name (DN) formats, this method handles distinguished names based on the type of management agent. The types are: database management agents, XML without Lightweight Directory Access Protocol (LDAP)–style distinguished names, and the management agents that are neither database nor XML.
Management agent type | Distinguished name handling notes |
---|---|
Database |
|
XML |
|
All other types |
|
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
CSEntry Class
CSEntry Members
Microsoft.MetadirectoryServices Namespace
ConnectorCollection Class
ExportEntry
CSEntry Class