Share via


ConnectionManager.AddLdapConnection method

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function AddLdapConnection ( _
    type As ConnectionType, _
    displayName As String, _
    server As String, _
    port As Integer, _
    useSSL As Boolean, _
    accountUsername As String, _
    accountPassword As SecureString, _
    userIDAttribute As String, _
    providerName As String, _
    namingContexts As List(Of DirectoryServiceNamingContext), _
    spsClaimProviderTypeValue As String, _
    spsClaimProviderIdValue As String _
) As DirectoryServiceConnection
'Usage
Dim instance As ConnectionManager
Dim type As ConnectionType
Dim displayName As String
Dim server As String
Dim port As Integer
Dim useSSL As Boolean
Dim accountUsername As String
Dim accountPassword As SecureString
Dim userIDAttribute As String
Dim providerName As String
Dim namingContexts As List(Of DirectoryServiceNamingContext)
Dim spsClaimProviderTypeValue As String
Dim spsClaimProviderIdValue As String
Dim returnValue As DirectoryServiceConnection

returnValue = instance.AddLdapConnection(type, _
    displayName, server, port, useSSL, _
    accountUsername, accountPassword, _
    userIDAttribute, providerName, namingContexts, _
    spsClaimProviderTypeValue, spsClaimProviderIdValue)
public DirectoryServiceConnection AddLdapConnection(
    ConnectionType type,
    string displayName,
    string server,
    int port,
    bool useSSL,
    string accountUsername,
    SecureString accountPassword,
    string userIDAttribute,
    string providerName,
    List<DirectoryServiceNamingContext> namingContexts,
    string spsClaimProviderTypeValue,
    string spsClaimProviderIdValue
)

Parameters

Return value

Type: Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection

See also

Reference

ConnectionManager class

ConnectionManager members

Microsoft.Office.Server.UserProfiles namespace