Freigeben über


ServerPropertyCollection.Insert Method

Definition

Overloads

Insert(Int32, ServerProperty)

Inserts the specified ServerProperty to the collection at the specified index.

Insert(Int32, String, String)

Creates a new ServerProperty object using the name and value provided, inserts it to the collection at the specified index, and returns the new ServerProperty object created.

Insert(Int32, ServerProperty)

Inserts the specified ServerProperty to the collection at the specified index.

public void Insert (int index, Microsoft.AnalysisServices.ServerProperty item);
member this.Insert : int * Microsoft.AnalysisServices.ServerProperty -> unit
Public Sub Insert (index As Integer, item As ServerProperty)

Parameters

index
Int32

The zero-based index at which the ServerProperty is inserted.

item
ServerProperty

The ServerProperty to be inserted.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

The specified item is a null reference (Nothing in Visual Basic).

The specified item's name is a null reference (Nothing in Visual Basic).

  • The specified item already esists in the collection.
  • The specified item belongs to another collection.
  • The collection already contains an item with the same name as the specified item.

Applies to

Insert(Int32, String, String)

Creates a new ServerProperty object using the name and value provided, inserts it to the collection at the specified index, and returns the new ServerProperty object created.

public Microsoft.AnalysisServices.ServerProperty Insert (int index, string name, string value);
member this.Insert : int * string * string -> Microsoft.AnalysisServices.ServerProperty
Public Function Insert (index As Integer, name As String, value As String) As ServerProperty

Parameters

index
Int32

The zero-based index at which the ServerProperty is inserted.

name
String

The Name for the new ServerProperty object.

value
String

The Value for the new ServerProperty object.

Returns

The newly created ServerProperty object.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

The specified name is a null reference (Nothing in Visual Basic).

The collection already contains an item with the same name as the specified name.

Applies to