ConnectionManager.AddActiveDirectoryConnection 方法 (ConnectionType, String, String, Boolean, String, String, SecureString, List<DirectoryServiceNamingContext>, String, String)
命名空间: Microsoft.Office.Server.UserProfiles
程序集: Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)
语法
声明
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
用法
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
)
参数
- displayName
类型:System.String
- server
类型:System.String
- useSSL
类型:System.Boolean
- accountDomain
类型:System.String
- accountUsername
类型:System.String
- accountPassword
类型:System.Security.SecureString
- namingContexts
类型:System.Collections.Generic.List<DirectoryServiceNamingContext>
- spsClaimProviderTypeValue
类型:System.String
- spsClaimProviderIdValue
类型:System.String
返回值
类型:Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection