다음을 통해 공유


AttributePermissionCollection.IndexOf Method

Definition

Overloads

IndexOf(AttributePermission)

Searches for the specified AttributePermission and returns the zero-based index of it in the collection.

IndexOf(String)

Searches for an AttributePermission with the specified AttributeID and returns the zero-based index of it in the collection.

IndexOf(AttributePermission)

Searches for the specified AttributePermission and returns the zero-based index of it in the collection.

public int IndexOf (Microsoft.AnalysisServices.AttributePermission item);
override this.IndexOf : Microsoft.AnalysisServices.AttributePermission -> int
Public Function IndexOf (item As AttributePermission) As Integer

Parameters

item
AttributePermission

The AttributePermission to locate in the collection.

Returns

The zero-based index of the AttributePermission in the collection, if found; otherwise, -1.

Applies to

IndexOf(String)

Searches for an AttributePermission with the specified AttributeID and returns the zero-based index of it in the collection.

public int IndexOf (string attributeId);
override this.IndexOf : string -> int
Public Function IndexOf (attributeId As String) As Integer

Parameters

attributeId
String

The AttributeID of the AttributePermission to locate in the collection.

Returns

The zero-based index of the AttributePermission in the collection, if found; otherwise, -1.

Applies to