共用方式為


SecurityPredicateCollectionBase.GetItemByTargetObjectID Method

Definition

Overloads

GetItemByTargetObjectID(Int32)

Gets the filter predicate that applies to the specified object id if it exists.

GetItemByTargetObjectID(Int32, SecurityPredicateType, SecurityPredicateOperation)

Gets the security predicate for a given target object ID, type, and operation.

GetItemByTargetObjectID(Int32)

Gets the filter predicate that applies to the specified object id if it exists.

public Microsoft.SqlServer.Management.Smo.SecurityPredicate GetItemByTargetObjectID (int targetObjectID);
member this.GetItemByTargetObjectID : int -> Microsoft.SqlServer.Management.Smo.SecurityPredicate
Public Function GetItemByTargetObjectID (targetObjectID As Integer) As SecurityPredicate

Parameters

targetObjectID
Int32

The target object id

Returns

The security predicate if found, null otherwise

Applies to

GetItemByTargetObjectID(Int32, SecurityPredicateType, SecurityPredicateOperation)

Gets the security predicate for a given target object ID, type, and operation.

public Microsoft.SqlServer.Management.Smo.SecurityPredicate GetItemByTargetObjectID (int targetObjectID, Microsoft.SqlServer.Management.Smo.SecurityPredicateType predicateType, Microsoft.SqlServer.Management.Smo.SecurityPredicateOperation predicateOperation);
member this.GetItemByTargetObjectID : int * Microsoft.SqlServer.Management.Smo.SecurityPredicateType * Microsoft.SqlServer.Management.Smo.SecurityPredicateOperation -> Microsoft.SqlServer.Management.Smo.SecurityPredicate
Public Function GetItemByTargetObjectID (targetObjectID As Integer, predicateType As SecurityPredicateType, predicateOperation As SecurityPredicateOperation) As SecurityPredicate

Parameters

targetObjectID
Int32

The target object id

predicateType
SecurityPredicateType

The type of the security predicate

predicateOperation
SecurityPredicateOperation

The operation type of the security predicate

Returns

The security predicate if found, null otherwise

Applies to