共用方式為


ModelComponentCollection.AddNew Method

Definition

Overloads

AddNew(String, Type)

Adds a new IModelComponent to the collection.

AddNew(String, String, Type)

Adds a new IModelComponent to the collection.

AddNew(String, Type)

Adds a new IModelComponent to the collection.

protected Microsoft.AnalysisServices.IModelComponent AddNew (string key, Type type);
member this.AddNew : string * Type -> Microsoft.AnalysisServices.IModelComponent
Protected Function AddNew (key As String, type As Type) As IModelComponent

Parameters

key
String

The key.

type
Type

The type of the component.

Returns

The IModelComponent added to the collection.

Applies to

AddNew(String, String, Type)

Adds a new IModelComponent to the collection.

protected Microsoft.AnalysisServices.IModelComponent AddNew (string name, string key, Type type);
member this.AddNew : string * string * Type -> Microsoft.AnalysisServices.IModelComponent
Protected Function AddNew (name As String, key As String, type As Type) As IModelComponent

Parameters

name
String

The name of the component to add.

key
String

The key.

type
Type

The type of the component.

Returns

The IModelComponent added to the collection.

Applies to