SPTrustedClaimTypeInformation.Equals 方法

确定指定的对象是否等于当前的SPTrustedClaimTypeInformation对象。

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

语法

声明
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Function Equals ( _
    other As Object _
) As Boolean
用法
Dim instance As SPTrustedClaimTypeInformation
Dim other As Object
Dim returnValue As Boolean

returnValue = instance.Equals(other)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override bool Equals(
    Object other
)

参数

  • other
    类型:System.Object

    要与当前对象进行比较的对象。

返回值

类型:System.Boolean
true如果other等于当前对象。否则为false。

异常

异常 条件
ArgumentNullException

other是 null 。

备注

此重写将other转换为一个SPTrustedClaimTypeInformation对象,并将比较两个SPTrustedClaimTypeInformation对象的所有属性。

如果两个SPTrustedClaimTypeInformation对象的所有属性值都都相等,则该重写返回true 。如果AcceptOnlyKnownClaimValues属性的值是false,此重写不检查两个SPTrustedClaimTypeInformation对象的KnownClaimValues属性。

另请参阅

引用

SPTrustedClaimTypeInformation 类

SPTrustedClaimTypeInformation 成员

Microsoft.SharePoint.Administration.Claims 命名空间