共用方式為


GetElement 方法 (String)

Gets an element with the specified name from the collection.

命名空間:  Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
組件:  Microsoft.SqlServer.Exec80PackageTask (在 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
)
public:
Object^ GetElement(
    String^ variableName
)
member GetElement : 
        variableName:string -> Object 
public function GetElement(
    variableName : String
) : Object

參數

傳回值

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