다음을 통해 공유


LevelCollection.Add Method

Definition

Overloads

Add()

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

Add(Level)

Adds the specified Level to the end of the collection.

Add(String)

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

Add(String, String)

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

Add()

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

public Microsoft.AnalysisServices.Level Add ();
override this.Add : unit -> Microsoft.AnalysisServices.Level
Public Function Add () As Level

Returns

The newly created Level object.

Applies to

Add(Level)

Adds the specified Level to the end of the collection.

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

Parameters

item
Level

The Level to be added.

Returns

The zero-based index at which the Level 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 Level is not valid in the collection.
  • The name of the specified Level is not valid in the collection.
  • The compatibility-level of the specified Level is not valid in the collection.

Applies to

Add(String)

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

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

Parameters

name
String

The Name for the new Level object.

Returns

The newly created Level object.

Exceptions

The specified name is not valid in the collection.

Remarks

The identifier for the new Level object is generated based on the specified name.

Applies to

Add(String, String)

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

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

Parameters

name
String

The Name for the new Level object.

id
String

The identifier for the new Level object.

Returns

The newly created Level object.

Exceptions

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

Applies to