共用方式為


SPIisSettings.MembershipProvider property

NOTE: This API is now obsolete.

取得或設定 Web 應用程式的成員資格提供者名稱。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("Use of forms based authentication has been moved to claims authentication only.",  _
    False)> _
Public Property MembershipProvider As String
    Get
    Set
'用途
Dim instance As SPIisSettings
Dim value As String

value = instance.MembershipProvider

instance.MembershipProvider = value
[ObsoleteAttribute("Use of forms based authentication has been moved to claims authentication only.", 
    false)]
public string MembershipProvider { get; set; }

Property value

Type: System.String
包含的成員資格提供者名稱,必須與成員資格提供者的 Web.config 檔案中指定的名稱相同名稱的字串。您可能需要手動設定成員資格提供者的 web.config 檔案中的 [其他屬性。

請參閱

參照

SPIisSettings class

SPIisSettings members

Microsoft.SharePoint.Administration namespace