Delen via


EnvironmentCollection.Contains Method (String)

Returns a value that indicates whether the environment collection contains the specified name.

Namespace:  Microsoft.SqlServer.Management.IntegrationServices
Assembly:  Microsoft.SqlServer.Management.IntegrationServices (in Microsoft.SqlServer.Management.IntegrationServices.dll)

Syntax

'Declaration
Public Function Contains ( _
    name As String _
) As Boolean
'Usage
Dim instance As EnvironmentCollection 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.Contains(name)
public bool Contains(
    string name
)
public:
bool Contains(
    String^ name
)
member Contains : 
        name:string -> bool
public function Contains(
    name : String
) : boolean

Parameters

  • name
    Type: System.String
    The name of the environment.The name of the environment.

Return Value

Type: System.Boolean
true if the environment collection contains the specified name; otherwise, false.

See Also

Reference

EnvironmentCollection Class

Contains Overload

Microsoft.SqlServer.Management.IntegrationServices Namespace