Share via


ServerPropertyCollection.Add Method

Definition

Overloads

Add(ServerProperty)

Adds the specified ServerProperty to the end of the collection.

Add(String, String)

Creates a new ServerProperty object using the name and value provided, adds it to the collection and returns the new ServerProperty object created.

Add(ServerProperty)

Adds the specified ServerProperty to the end of the collection.

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

Parameters

item
ServerProperty

The ServerProperty to be added.

Returns

The zero-based index at which the ServerProperty has been added to the collection.

Exceptions

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

Add(String, String)

Creates a new ServerProperty object using the name and value provided, adds it to the collection and returns the new ServerProperty object created.

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

Parameters

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 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