Provides a "clean", Guid-based provider user key. Some of the providers, like ActiveDirectoryMembership provider, do not return the Guid-based key, which interferes with the DB design.
Namespace: MonoSoftware.WebAssembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static Guid GetProviderUserKey(
this MembershipUser user
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function GetProviderUserKey (
user As MembershipUser
) As Guid |
Visual C++ |
---|
public:
[ExtensionAttribute]
static Guid GetProviderUserKey(
MembershipUser^ user
) |
F# |
---|
static member GetProviderUserKey :
user : MembershipUser -> Guid
|
Return Value
Type:
GuidGuid-based provider user key.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MembershipUser. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also