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
- displayName
Type: System.String
- server
Type: System.String
- port
Type: System.Int32
- useSSL
Type: System.Boolean
- accountUsername
Type: System.String
- accountPassword
Type: System.Security.SecureString
- userIDAttribute
Type: System.String
- providerName
Type: System.String
- namingContexts
Type: System.Collections.Generic.List<DirectoryServiceNamingContext>
- spsClaimProviderTypeValue
Type: System.String
- spsClaimProviderIdValue
Type: System.String
Return Value
Type: Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection