ConnectionManager.AddLdapConnection 方法

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
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
用法
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
)

参数

返回值

类型:Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection

另请参阅

引用

ConnectionManager 类

ConnectionManager 成员

Microsoft.Office.Server.UserProfiles 命名空间