NamedComponentCollection.CanAdd Method (ModelComponent, String)

 

Applies To: SQL Server 2016 Preview

This API supports the product infrastructure and is not intended to be used directly from your code.

Indicates whether the collection can add a T: HYPERLINK "https://msdn.microsoft.com/en-us/library/microsoft.analysisservices.modelcomponent" Microsoft.AnalysisServices.ModelComponent.

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

Syntax

public override bool CanAdd(
    ModelComponent item,
    out string error
)
public:
virtual bool CanAdd(
    ModelComponent^ item,
    [OutAttribute] String^% error
) override
override CanAdd : 
        item:ModelComponent *
        error:string byref -> bool
Public Overrides Function CanAdd (
    item As ModelComponent,
    <OutAttribute> ByRef error As String
) As Boolean

Parameters

  • error
    Type: System.String

    The error that will occur if the collection can’t add a T: HYPERLINK "https://msdn.microsoft.com/en-us/library/microsoft.analysisservices.modelcomponent" Microsoft.AnalysisServices.ModelComponent. 

Return Value

Type: System.Boolean

The error that will occur if the collection can’t add a T: HYPERLINK "https://msdn.microsoft.com/en-us/library/microsoft.analysisservices.modelcomponent" Microsoft.AnalysisServices.ModelComponent.

See Also

NamedComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top