다음을 통해 공유


SPMembershipUserKeyType Enumeration

In Forms authentication mode, whether to use UserName or ProviderUserKeyas the underlying mechanism to identify a user.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Enumeration SPMembershipUserKeyType
'Usage
Dim instance As SPMembershipUserKeyType
public enum SPMembershipUserKeyType

Members

Member name Description
UserName Use MembershipUser.UserName to identify the user.
ProviderUserKey Use MembershipUser.ProviderUserKey to identify a user.

Remarks

ASP.NET MembershipUser.ProviderUserKey is a unique ID separate from the user name. if you set the farm at ProviderUserKey mode, then SharePoint Foundation will use ProviderUserKey instead of MembershipUser.UserName to identify user. Setting this mode before adding any membership provider users into the farm is recommended, because changing the mode does not migrate existing user entries in SharePoint Foundation database. Also, there is a performance consideration. Calling ProviderUserKey may cause extra database traffic to the membership provider database, depending on how the membership provider is implemented.

See Also

Reference

Microsoft.SharePoint.Administration Namespace

MembershipUserKeyType