Share via


NamedComponentCollection.Contains Method (String)

 

Applies To: SQL Server (starting with 2016)

Determines whether an item with the specific key is in the NamedComponentCollection.

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

Syntax

public bool Contains(
    string id
)
public:
virtual bool Contains(
    String^ id
) sealed
abstract Contains : 
        id:string -> bool
override Contains : 
        id:string -> bool
Public Function Contains (
    id As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the id found in the NamedComponentCollection; otherwise, false.

Implements

INamedComponentCollection.Contains(String)

See Also

Contains Overload
NamedComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top