ServerPropertyCollection.Insert Method (Int32, String, String)

 

Applies To: SQL Server (starting with 2016)

Creates and inserts a ServerProperty, with the specified name and value, into the collection at the specified index.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)

Syntax

public ServerProperty Insert(
    int index,
    string name,
    string value
)
public:
ServerProperty^ Insert(
    int index,
    String^ name,
    String^ value
)
member Insert : 
        index:int *
        name:string *
        value:string -> ServerProperty
Public Function Insert (
    index As Integer,
    name As String,
    value As String
) As ServerProperty

Parameters

Return Value

Type: Microsoft.AnalysisServices.ServerProperty

The ServerProperty that was inserted into the collection.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

See Also

Insert Overload
ServerPropertyCollection Class
Microsoft.AnalysisServices Namespace

Return to top