SPClaimsAuthMembershipProvider.ChangePassword 方法

命名空间:  Microsoft.SharePoint.Administration.Claims
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overrides Function ChangePassword ( _
    name As String, _
    oldPwd As String, _
    newPwd As String _
) As Boolean
用法
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim oldPwd As String
Dim newPwd As String
Dim returnValue As Boolean

returnValue = instance.ChangePassword(name, _
    oldPwd, newPwd)
public override bool ChangePassword(
    string name,
    string oldPwd,
    string newPwd
)

参数

返回值

类型:System.Boolean
true如果成功,则更新密码否则为false。

备注

如果找不到该用户的密码不正确,此重写更新中,不是SPClaimsAuthMembershipProvider,并使用基于窗体的当前应用程序中的身份验证的成员资格提供程序的指定用户的密码。

另请参阅

引用

SPClaimsAuthMembershipProvider 类

SPClaimsAuthMembershipProvider 成员

Microsoft.SharePoint.Administration.Claims 命名空间