共用方式為


IDtsVariableService.PromptAndCreateVariable 方法 (IWin32Window, DtsContainer, String, String, Type)

Prompts for and creates a variable for the specified window, container, and namespace. This method is a helper method for working with variables in a user interface.

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

語法

'宣告
Function PromptAndCreateVariable ( _
    parentWindow As IWin32Window, _
    dtsContainer As DtsContainer, _
    defaultName As String, _
    defaultNamespace As String, _
    defaultType As Type _
) As Variable
'用途
Dim instance As IDtsVariableService 
Dim parentWindow As IWin32Window 
Dim dtsContainer As DtsContainer 
Dim defaultName As String 
Dim defaultNamespace As String 
Dim defaultType As Type 
Dim returnValue As Variable 

returnValue = instance.PromptAndCreateVariable(parentWindow, _
    dtsContainer, defaultName, defaultNamespace, _
    defaultType)
Variable PromptAndCreateVariable(
    IWin32Window parentWindow,
    DtsContainer dtsContainer,
    string defaultName,
    string defaultNamespace,
    Type defaultType
)
Variable^ PromptAndCreateVariable(
    IWin32Window^ parentWindow, 
    DtsContainer^ dtsContainer, 
    String^ defaultName, 
    String^ defaultNamespace, 
    Type^ defaultType
)
abstract PromptAndCreateVariable : 
        parentWindow:IWin32Window * 
        dtsContainer:DtsContainer * 
        defaultName:string * 
        defaultNamespace:string * 
        defaultType:Type -> Variable
function PromptAndCreateVariable(
    parentWindow : IWin32Window, 
    dtsContainer : DtsContainer, 
    defaultName : String, 
    defaultNamespace : String, 
    defaultType : Type
) : Variable

參數

  • defaultName
    型別:System.String
    The default name of the variable.
  • defaultNamespace
    型別:System.String
    The default namespace that the variable will belong in.
  • defaultType
    型別:System.Type
    The default type of the variable.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Variable
A new Variable instance.

請參閱

參考

IDtsVariableService 介面

PromptAndCreateVariable 多載

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