DimensionPermissionCollection.Add DimensionPermissionCollection.Add DimensionPermissionCollection.Add Method

Definition

Overloads

Add(DimensionPermission) Add(DimensionPermission) Add(DimensionPermission)

Adds the specified DimensionPermission to the end of the collection.

Add(String) Add(String) Add(String)

Creates a new DimensionPermission object using the specified RoleID and a generated unique Name and identifier, adds it to the end of the collection and returns the new DimensionPermission created.

Add(String, String) Add(String, String) Add(String, String)

Creates a new DimensionPermission object using the specified name and RoleID, adds it to the end of the collection and returns the new DimensionPermission created.

Add(String, String, String) Add(String, String, String) Add(String, String, String)

Creates a new DimensionPermission object using the specified name, identifier and RoleID, adds it to the end of the collection and returns the new DimensionPermission created.

Add(DimensionPermission) Add(DimensionPermission) Add(DimensionPermission)

Adds the specified DimensionPermission to the end of the collection.

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

Parameters

Returns

The zero-based index at which the Microsoft.AnalysisServices.{0} 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 identifier of the specified DimensionPermission is not valid in the collection.
  • The name of the specified DimensionPermission is not valid in the collection.
  • The compatibility-level of the specified DimensionPermission is not valid in the collection.

Add(String) Add(String) Add(String)

Creates a new DimensionPermission object using the specified RoleID and a generated unique Name and identifier, adds it to the end of the collection and returns the new DimensionPermission created.

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

Parameters

roleId
String String String

The RoleID for the new DimensionPermission object.

Returns

Add(String, String) Add(String, String) Add(String, String)

Creates a new DimensionPermission object using the specified name and RoleID, adds it to the end of the collection and returns the new DimensionPermission created.

public Microsoft.AnalysisServices.DimensionPermission Add (string roleId, string name);
override this.Add : string * string -> Microsoft.AnalysisServices.DimensionPermission
Public Function Add (roleId As String, name As String) As DimensionPermission

Parameters

roleId
String String String

The RoleID for the new DimensionPermission object.

name
String String String

The Name for the new DimensionPermission object.

Returns

Exceptions

Remarks

The specified name must be unique within the collection. The identifier for the new DimensionPermission object is generated based on the specified name.

Add(String, String, String) Add(String, String, String) Add(String, String, String)

Creates a new DimensionPermission object using the specified name, identifier and RoleID, adds it to the end of the collection and returns the new DimensionPermission created.

public Microsoft.AnalysisServices.DimensionPermission Add (string roleId, string name, string id);
override this.Add : string * string * string -> Microsoft.AnalysisServices.DimensionPermission
Public Function Add (roleId As String, name As String, id As String) As DimensionPermission

Parameters

roleId
String String String

The RoleID for the new DimensionPermission object.

name
String String String

The Name for the new DimensionPermission object.

id
String String String

The identifier for the new DimensionPermission object.

Returns

Exceptions

  • The specified name is not valid in the collection.
  • The specified identifier is not valid in the collection.

Remarks

The specified name and identifier must be unique within the collection.

Applies to