ModelComponentCollection.AddNew Method (String, String, Type)

 

Applies To: SQL Server (starting with 2016)

Adds a new IModelComponent to the collection.

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

Syntax

[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, 
    PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8")]
protected IModelComponent AddNew(
    string name,
    string key,
    Type type
)
protected:
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, 
    PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8")]
IModelComponent^ AddNew(
    String^ name,
    String^ key,
    Type^ type
)
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand,
    PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8")>]
member AddNew : 
        name:string *
        key:string *
        type:Type -> IModelComponent
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand,
    PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8")>
Protected Function AddNew (
    name As String,
    key As String,
    type As Type
) As IModelComponent

Parameters

Return Value

Type: Microsoft.AnalysisServices.IModelComponent

The IModelComponent added to the collection.

See Also

AddNew Overload
ModelComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top