SPClaimTypes.Equals method
比較兩個ClaimType物件。
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function Equals ( _
claimTypeOne As String, _
claimTypeTwo As String _
) As Boolean
'用途
Dim claimTypeOne As String
Dim claimTypeTwo As String
Dim returnValue As Boolean
returnValue = SPClaimTypes.Equals(claimTypeOne, _
claimTypeTwo)
public static bool Equals(
string claimTypeOne,
string claimTypeTwo
)
參數
claimTypeOne
Type: System.StringString,代表要比較的第一個宣告類型。
claimTypeTwo
Type: System.StringString,代表第二個宣告進行比較的類型。
傳回值
Type: System.Boolean
true如果claimTypeOne和claimTypeTwo相等 ;否則,請false。預設值為false。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | claimTypeOne或claimTypeTwo參數,則 null 。 |