CubeDimensionPermissionCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(CubeDimensionPermission) |
Adds the specified CubeDimensionPermission to the end of the collection. |
Add(String) |
Creates a new CubeDimensionPermission object using the specified CubeDimensionID, adds it to the end of the collection and returns the new CubeDimensionPermission created. |
Add(CubeDimensionPermission)
Adds the specified CubeDimensionPermission to the end of the collection.
public int Add (Microsoft.AnalysisServices.CubeDimensionPermission item);
override this.Add : Microsoft.AnalysisServices.CubeDimensionPermission -> int
Public Function Add (item As CubeDimensionPermission) As Integer
Parameters
The CubeDimensionPermission to be added.
Returns
The zero-based index at which the CubeDimensionPermission 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 CubeDimensionID of the specified CubeDimensionPermission is not valid in the collection.
- The name of the specified CubeDimensionPermission is not valid in the collection.
- The compatibility-level of the specified CubeDimensionPermission is not valid in the collection.
Applies to
Add(String)
Creates a new CubeDimensionPermission object using the specified CubeDimensionID, adds it to the end of the collection and returns the new CubeDimensionPermission created.
public Microsoft.AnalysisServices.CubeDimensionPermission Add (string cubeDimensionId);
override this.Add : string -> Microsoft.AnalysisServices.CubeDimensionPermission
Public Function Add (cubeDimensionId As String) As CubeDimensionPermission
Parameters
- cubeDimensionId
- String
The CubeDimensionID for the new CubeDimensionPermission object.
Returns
The newly created CubeDimensionPermission object.
Exceptions
The specified CubeDimensionID is not valid in the collection.