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)

Syntax

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

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

Parameters

  • 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).