SPClaimTypes.IsValid method
會決定是否有效的宣告類型。
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsValid ( _
claimType As String _
) As Boolean
'用途
Dim claimType As String
Dim returnValue As Boolean
returnValue = SPClaimTypes.IsValid(claimType)
public static bool IsValid(
string claimType
)
參數
claimType
Type: System.String若要驗證的宣告類型。
傳回值
Type: System.Boolean
true的宣告類型時才有效 ; 如果否則,請false。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException() | claimType是 null 。 |
備註
正確的格式為string1/string2時的宣告類型。