PerspectiveActionCollection.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(PerspectiveAction) |
Adds the specified PerspectiveAction to the end of the collection. |
Add(String) |
Creates a new PerspectiveAction object using the specified ActionID, adds it to the end of the collection and returns the new PerspectiveAction created. |
Add(PerspectiveAction)
Adds the specified PerspectiveAction to the end of the collection.
public int Add (Microsoft.AnalysisServices.PerspectiveAction item);
override this.Add : Microsoft.AnalysisServices.PerspectiveAction -> int
Public Function Add (item As PerspectiveAction) As Integer
Parameters
- item
- PerspectiveAction
The PerspectiveAction to be added.
Returns
The zero-based index at which the PerspectiveAction 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 ActionID of the specified PerspectiveAction is not valid in the collection.
- The name of the specified PerspectiveAction is not valid in the collection.
- The compatibility-level of the specified PerspectiveAction is not valid in the collection.
Applies to
Add(String)
Creates a new PerspectiveAction object using the specified ActionID, adds it to the end of the collection and returns the new PerspectiveAction created.
public Microsoft.AnalysisServices.PerspectiveAction Add (string actionId);
override this.Add : string -> Microsoft.AnalysisServices.PerspectiveAction
Public Function Add (actionId As String) As PerspectiveAction
Parameters
- actionId
- String
The ActionID for the new PerspectiveAction object.
Returns
The newly created PerspectiveAction object.
Exceptions
The specified ActionID is not valid in the collection.