MiningStructurePermissionCollection.Insert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Insert(Int32, String, String, String) |
Creates a new MiningStructurePermission object using the specified RoleID, name and identifier, inserts it to the collection at the specified index and returns the new MiningStructurePermission created. |
Insert(Int32, String, String) |
Creates a new MiningStructurePermission object using the specified RoleID and name, inserts it to the collection at the specified index and returns the new MiningStructurePermission created. |
Insert(Int32, MiningStructurePermission) |
Inserts the specified MiningStructurePermission to the collection at the specified index. |
Insert(Int32, String) |
Creates a new MiningStructurePermission object with the specified RoleID and a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new MiningStructurePermission created. |
Insert(Int32, String, String, String)
Creates a new MiningStructurePermission object using the specified RoleID, name and identifier, inserts it to the collection at the specified index and returns the new MiningStructurePermission created.
public Microsoft.AnalysisServices.MiningStructurePermission Insert (int index, string roleId, string name, string id);
override this.Insert : int * string * string * string -> Microsoft.AnalysisServices.MiningStructurePermission
Public Function Insert (index As Integer, roleId As String, name As String, id As String) As MiningStructurePermission
Parameters
- index
- Int32
The zero-based index at which the MiningStructurePermission is inserted.
- roleId
- String
The RoleID for the new MiningStructurePermission object.
- name
- String
The Name for the new MiningStructurePermission object.
- id
- String
The identifier for the new MiningStructurePermission object.
Returns
The newly created MiningStructurePermission. 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 not valid in the collection.
- The specified identifier is not valid in the collection.
Applies to
Insert(Int32, String, String)
Creates a new MiningStructurePermission object using the specified RoleID and name, inserts it to the collection at the specified index and returns the new MiningStructurePermission created.
public Microsoft.AnalysisServices.MiningStructurePermission Insert (int index, string roleId, string name);
override this.Insert : int * string * string -> Microsoft.AnalysisServices.MiningStructurePermission
Public Function Insert (index As Integer, roleId As String, name As String) As MiningStructurePermission
Parameters
- index
- Int32
The zero-based index at which the MiningStructurePermission is inserted.
- roleId
- String
The RoleID for the new MiningStructurePermission object.
- name
- String
The Name for the new MiningStructurePermission object.
Returns
The newly created MiningStructurePermission. 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 not valid in the collection.
Remarks
The identifier for the MiningStructurePermission is generated based on the specified Name.
Applies to
Insert(Int32, MiningStructurePermission)
Inserts the specified MiningStructurePermission to the collection at the specified index.
public void Insert (int index, Microsoft.AnalysisServices.MiningStructurePermission item);
override this.Insert : int * Microsoft.AnalysisServices.MiningStructurePermission -> unit
Public Sub Insert (index As Integer, item As MiningStructurePermission)
Parameters
- index
- Int32
The zero-based index at which the MiningStructurePermission is inserted.
The MiningStructurePermission 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 null [Nothing in VisualBasic].
- The specified item already esists in the collection.
- The identifier of the specified MiningStructurePermission is not valid in the collection.
- The name of the specified MiningStructurePermission is not valid in the collection.
- The compatibility-level of the specified MiningStructurePermission is not valid in the collection.
Applies to
Insert(Int32, String)
Creates a new MiningStructurePermission object with the specified RoleID and a generated unique Name and identifier, inserts it to the collection at the specified index and returns the new MiningStructurePermission created.
public Microsoft.AnalysisServices.MiningStructurePermission Insert (int index, string roleId);
override this.Insert : int * string -> Microsoft.AnalysisServices.MiningStructurePermission
Public Function Insert (index As Integer, roleId As String) As MiningStructurePermission
Parameters
- index
- Int32
The zero-based index at which the MiningStructurePermission is inserted.
- roleId
- String
The RoleID for the new MiningStructurePermission object.
Returns
The newly created MiningStructurePermission. object
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).