VariablesCollection.GetElement Method (String)

Gets an element with the specified name from the collection.

Namespace:  Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
Assembly:  Microsoft.SqlServer.Exec80PackageTask (in Microsoft.SqlServer.Exec80PackageTask.dll)


Public Function GetElement ( _
    variableName As String _
) As Object
Dim instance As VariablesCollection
Dim variableName As String
Dim returnValue As Object

returnValue = instance.GetElement(variableName)
public Object GetElement(
    string variableName
Object^ GetElement(
    String^ variableName
member GetElement : 
        variableName:string -> Object 
public function GetElement(
    variableName : String
) : Object


  • variableName
    Type: System.String
    The name of the element to be returned.

Return Value

Type: System.Object
An Object containing the element with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic).