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, _
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 네임스페이스