ConnectorCollection.StartNewConnector Method (String)
Initiates the process of creating a connector of the specified object type.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As ConnectorCollection
Dim objectType As String
Dim returnValue As CSEntry
returnValue = instance.StartNewConnector(objectType)
Syntax
'Declaration
Public MustOverride Function StartNewConnector ( _
objectType As String _
) As CSEntry
public abstract CSEntry StartNewConnector (
string objectType
)
public:
virtual CSEntry^ StartNewConnector (
String^ objectType
) abstract
public abstract CSEntry StartNewConnector (
String objectType
)
public abstract function StartNewConnector (
objectType : String
) : 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 selected for the management agent. To see the object types that 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 that is referenced is not in the schema. |
Remarks
After calling this method, set the required attribute values, and then call the CommitNewConnector method to add the connector to the ConnectorCollection object. If you do not call the CommitNewConnector method after you call 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 (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 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 |
|
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
ConnectorCollection Class
ConnectorCollection Members
Microsoft.MetadirectoryServices Namespace
CSEntry
CommitNewConnector
DN
NoSuchObjectTypeException
ConnectorCollection Class
ConnectorCollection Class