ConnectorCollection.StartNewConnector Method
The StartNewConnector(String) method initiates the process of creating a connector of the specified object type.
Syntax
public CSEntry StartNewConnector(
String objectType
);
Public Function StartNewConnector( _
ByVal objectType As String _
) As CSEntry
Parameters
- objectType
Contains the name of the object type for the new connector. You must set this parameter to an object type that you have selected for the management agent. To see which object types you selected for a management agent, open Select Object Types in the properties for the management agent.
Return Value
Returns a CSEntry object (without a distinguished name) that represents the new connector.
Exceptions
Exception type | Condition |
---|---|
NoSuchObjectTypeException | The object type referenced is not in the schema. |
Remarks
After calling this method, set the required attribute values and then call the CSEntry.CommitNewConnector method to add the connector to the ConnectorCollection object. If you do not call the CSEntry.CommitNewConnector method after calling this method, the object is rolled back to the original attribute values without generating any error messages.
Because different management agents require different (relative) distinguished name formats, this method handles distinguished names based upon the type of management agent. The types are database management agents; XML without LDAP-style distinguished names management agents; and the management agents that are neither database management agents nor XML without LDAP-style distinguished names management agents.
Management agent type | Distinguished name handling notes |
---|---|
Database |
|
XML |
|
All other types |
|
Requirements
Product | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
ConnectorCollection
CSEntry
CSEntry.CommitNewConnector
CSEntry.DN
NoSuchObjectTypeException
Send comments about this topic to Microsoft
Build date: 2/16/2009