ConnectionManager.AddActiveDirectoryConnection Method (ConnectionType, String, String, Boolean, String, String, SecureString, List<DirectoryServiceNamingContext>, String, String)
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function AddActiveDirectoryConnection ( _
type As ConnectionType, _
displayName As String, _
server As String, _
useSSL As Boolean, _
accountDomain As String, _
accountUsername As String, _
accountPassword As SecureString, _
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 useSSL As Boolean
Dim accountDomain As String
Dim accountUsername As String
Dim accountPassword As SecureString
Dim namingContexts As List(Of DirectoryServiceNamingContext)
Dim spsClaimProviderTypeValue As String
Dim spsClaimProviderIdValue As String
Dim returnValue As DirectoryServiceConnection
returnValue = instance.AddActiveDirectoryConnection(type, _
displayName, server, useSSL, accountDomain, _
accountUsername, accountPassword, _
namingContexts, spsClaimProviderTypeValue, _
spsClaimProviderIdValue)
public DirectoryServiceConnection AddActiveDirectoryConnection(
ConnectionType type,
string displayName,
string server,
bool useSSL,
string accountDomain,
string accountUsername,
SecureString accountPassword,
List<DirectoryServiceNamingContext> namingContexts,
string spsClaimProviderTypeValue,
string spsClaimProviderIdValue
)
Parameters
- displayName
Type: System.String
- server
Type: System.String
- useSSL
Type: System.Boolean
- accountDomain
Type: System.String
- accountUsername
Type: System.String
- accountPassword
Type: System.Security.SecureString
- namingContexts
Type: System.Collections.Generic.List<DirectoryServiceNamingContext>
- spsClaimProviderTypeValue
Type: System.String
- spsClaimProviderIdValue
Type: System.String
Return Value
Type: Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection