AttributePermissionCollection.Add Method

Definition

Overloads

Add(AttributePermission)

Adds the specified AttributePermission to the end of the collection.

Add(String)

Creates a new AttributePermission object using the specified AttributeID, adds it to the end of the collection and returns the new AttributePermission created.

Add(AttributePermission)

Adds the specified AttributePermission to the end of the collection.

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

Parameters

Returns

The zero-based index at which the AttributePermission has been added to the collection.

Exceptions

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The AttributeID of the specified AttributePermission is not valid in the collection.
  • The name of the specified AttributePermission is not valid in the collection.
  • The compatibility-level of the specified AttributePermission is not valid in the collection.

Applies to

Add(String)

Creates a new AttributePermission object using the specified AttributeID, adds it to the end of the collection and returns the new AttributePermission created.

public Microsoft.AnalysisServices.AttributePermission Add (string attributeId);
override this.Add : string -> Microsoft.AnalysisServices.AttributePermission
Public Function Add (attributeId As String) As AttributePermission

Parameters

attributeId
String

The AttributeID for the new AttributePermission object.

Returns

The newly created AttributePermission object.

Exceptions

The specified AttributeID is not valid in the collection.

Applies to