共用方式為


IDTSVariableDispenser100.Contains 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Specifies whether an item can be retrieve from the collection by using indexing without throwing an exception. For more information, see VariableDispenserClass.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Function Contains ( _
    Variable As String _
) As Boolean
'用途
Dim instance As IDTSVariableDispenser100 
Dim Variable As String 
Dim returnValue As Boolean 

returnValue = instance.Contains(Variable)
bool Contains(
    string Variable
)
bool Contains(
    [InAttribute] String^ Variable
)
abstract Contains : 
        Variable:string -> bool
function Contains(
    Variable : String
) : boolean

參數

  • Variable
    型別:System.String
    The name of the variable to locate in the collection.

傳回值

型別:System.Boolean
An item to retrieve from the collection.

請參閱

參考

IDTSVariableDispenser100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間