ServerPropertyCollection.Insert 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Insert(Int32, ServerProperty) |
将指定的 ServerProperty 插入到集合中的指定索引处。 |
Insert(Int32, String, String) |
使用提供的名称和值创建一个新的 ServerProperty 对象,将其插入到集合中的指定索引处,并返回新创建的 ServerProperty 对象。 |
Insert(Int32, ServerProperty)
将指定的 ServerProperty 插入到集合中的指定索引处。
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)
参数
- index
- Int32
插入 ServerProperty 时所在的从零开始的索引。
- item
- ServerProperty
要插入的 ServerProperty。
例外
指定的索引不是有效值(小于零或大于元素总数)。
指定的项为空引用 (在 Visual Basic 中为 Nothing)。
指定项的名称为空引用(在 Visual Basic 中为 Nothing)。
- 集合中已存在指定的项。
- 指定的项属于另一个集合。
- 该集合已包含与指定项同名的项。
适用于
Insert(Int32, String, String)
使用提供的名称和值创建一个新的 ServerProperty 对象,将其插入到集合中的指定索引处,并返回新创建的 ServerProperty 对象。
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
参数
- index
- Int32
插入 ServerProperty 时所在的从零开始的索引。
- name
- String
新的 ServerProperty 对象的名称。
- value
- String
新的 ServerProperty 对象的值。
返回
新创建的 ServerProperty 对象。
例外
指定的索引不是有效值(小于零或大于元素总数)。
指定的名称为空引用(在 Visual Basic 中为 Nothing)。
集合已包含与指定名称同名的项。