IDtsVariableService.PromptAndCreateVariable 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提示并然后创建新变量。
重载
| PromptAndCreateVariable(IWin32Window, DtsContainer) | 
						 提示并然后创建新变量。  | 
        	
| PromptAndCreateVariable(IWin32Window, DtsContainer, String) | 
						 提示然后为指定的窗口和容器创建变量。 此方法是用于处理用户界面中的变量的帮助器方法。  | 
        	
| PromptAndCreateVariable(IWin32Window, DtsContainer, String, String, Type) | 
						 提示然后为指定的窗口、容器和命名空间创建变量。 此方法是用于处理用户界面中的变量的帮助器方法。  | 
        	
PromptAndCreateVariable(IWin32Window, DtsContainer)
提示并然后创建新变量。
public:
 Microsoft::SqlServer::Dts::Runtime::Variable ^ PromptAndCreateVariable(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::DtsContainer ^ dtsContainer);
	public Microsoft.SqlServer.Dts.Runtime.Variable PromptAndCreateVariable (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.DtsContainer dtsContainer);
	abstract member PromptAndCreateVariable : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.DtsContainer -> Microsoft.SqlServer.Dts.Runtime.Variable
	Public Function PromptAndCreateVariable (parentWindow As IWin32Window, dtsContainer As DtsContainer) As Variable
	参数
- parentWindow
 - IWin32Window
 
设计器的 IWin32Window。
- dtsContainer
 - DtsContainer
 
变量所属的默认容器。
返回
新 Variable 实例。
适用于
PromptAndCreateVariable(IWin32Window, DtsContainer, String)
提示然后为指定的窗口和容器创建变量。 此方法是用于处理用户界面中的变量的帮助器方法。
public:
 Microsoft::SqlServer::Dts::Runtime::Variable ^ PromptAndCreateVariable(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::DtsContainer ^ dtsContainer, System::String ^ defaultName);
	public Microsoft.SqlServer.Dts.Runtime.Variable PromptAndCreateVariable (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.DtsContainer dtsContainer, string defaultName);
	abstract member PromptAndCreateVariable : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.DtsContainer * string -> Microsoft.SqlServer.Dts.Runtime.Variable
	Public Function PromptAndCreateVariable (parentWindow As IWin32Window, dtsContainer As DtsContainer, defaultName As String) As Variable
	参数
- parentWindow
 - IWin32Window
 
设计器的 IWin32Window。
- dtsContainer
 - DtsContainer
 
变量所属的默认容器。
- defaultName
 - String
 
变量的默认名称。
返回
新 Variable 实例。
适用于
PromptAndCreateVariable(IWin32Window, DtsContainer, String, String, Type)
提示然后为指定的窗口、容器和命名空间创建变量。 此方法是用于处理用户界面中的变量的帮助器方法。
public:
 Microsoft::SqlServer::Dts::Runtime::Variable ^ PromptAndCreateVariable(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::DtsContainer ^ dtsContainer, System::String ^ defaultName, System::String ^ defaultNamespace, Type ^ defaultType);
	public Microsoft.SqlServer.Dts.Runtime.Variable PromptAndCreateVariable (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.DtsContainer dtsContainer, string defaultName, string defaultNamespace, Type defaultType);
	abstract member PromptAndCreateVariable : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.DtsContainer * string * string * Type -> Microsoft.SqlServer.Dts.Runtime.Variable
	Public Function PromptAndCreateVariable (parentWindow As IWin32Window, dtsContainer As DtsContainer, defaultName As String, defaultNamespace As String, defaultType As Type) As Variable
	参数
- parentWindow
 - IWin32Window
 
设计器的 IWin32Window。
- dtsContainer
 - DtsContainer
 
变量所属的默认容器。
- defaultName
 - String
 
变量的默认名称。
- defaultNamespace
 - String
 
变量所属的默认命名空间。
- defaultType
 - Type
 
变量的默认类型。
返回
新 Variable 实例。