UtilityClass.CreateAndShowForm Method (IWin32Window, SmsDialogData, ConnectionManagerBase, SmsSnapInBase, IResultObject, IResultObject, SmsNamedValuesDictionary, String, Object, SharedData, PropertyDataUpdated, Boolean)
Loads and shows a Visual Studio-like wizard by using .NET reflection, with a window as the parent.
Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
'Usage
Dim parent As IWin32Window
Dim dialogData As SmsDialogData
Dim connectionManager As ConnectionManagerBase
Dim snapIn As SmsSnapInBase
Dim parentObject As IResultObject
Dim resultObject As IResultObject
Dim namedValues As SmsNamedValuesDictionary
Dim objectClass As String
Dim nodeDescription As Object
Dim selectionSharedData As SharedData
Dim dataUpdatedDelegate As PropertyDataUpdated
Dim saveXmlTemplate As Boolean
UtilityClass.CreateAndShowForm(parent, dialogData, connectionManager, snapIn, parentObject, resultObject, namedValues, objectClass, nodeDescription, selectionSharedData, dataUpdatedDelegate, saveXmlTemplate)
Syntax
'Declaration
Public Shared Sub CreateAndShowForm ( _
parent As IWin32Window, _
dialogData As SmsDialogData, _
connectionManager As ConnectionManagerBase, _
snapIn As SmsSnapInBase, _
parentObject As IResultObject, _
resultObject As IResultObject, _
namedValues As SmsNamedValuesDictionary, _
objectClass As String, _
nodeDescription As Object, _
selectionSharedData As SharedData, _
dataUpdatedDelegate As PropertyDataUpdated, _
saveXmlTemplate As Boolean _
)
public static void CreateAndShowForm (
IWin32Window parent,
SmsDialogData dialogData,
ConnectionManagerBase connectionManager,
SmsSnapInBase snapIn,
IResultObject parentObject,
IResultObject resultObject,
SmsNamedValuesDictionary namedValues,
string objectClass,
Object nodeDescription,
SharedData selectionSharedData,
PropertyDataUpdated dataUpdatedDelegate,
bool saveXmlTemplate
)
public:
static void CreateAndShowForm (
IWin32Window^ parent,
SmsDialogData^ dialogData,
ConnectionManagerBase^ connectionManager,
SmsSnapInBase^ snapIn,
IResultObject^ parentObject,
IResultObject^ resultObject,
SmsNamedValuesDictionary^ namedValues,
String^ objectClass,
Object^ nodeDescription,
SharedData^ selectionSharedData,
PropertyDataUpdated^ dataUpdatedDelegate,
bool saveXmlTemplate
)
public static void CreateAndShowForm (
IWin32Window parent,
SmsDialogData dialogData,
ConnectionManagerBase connectionManager,
SmsSnapInBase snapIn,
IResultObject parentObject,
IResultObject resultObject,
SmsNamedValuesDictionary namedValues,
String objectClass,
Object nodeDescription,
SharedData selectionSharedData,
PropertyDataUpdated dataUpdatedDelegate,
boolean saveXmlTemplate
)
public static function CreateAndShowForm (
parent : IWin32Window,
dialogData : SmsDialogData,
connectionManager : ConnectionManagerBase,
snapIn : SmsSnapInBase,
parentObject : IResultObject,
resultObject : IResultObject,
namedValues : SmsNamedValuesDictionary,
objectClass : String,
nodeDescription : Object,
selectionSharedData : SharedData,
dataUpdatedDelegate : PropertyDataUpdated,
saveXmlTemplate : boolean
)
Parameters
- parent
[in] System.Windows.Forms.IWin32Window object that represents the parent of the form.
- dialogData
[in] SmsDialogData object for the form.
- connectionManager
[in] ConnectionManagerBase object.
- snapIn
[in] SmsSnapInBase object that represents the Configuration Manager console snap-in.
- parentObject
[in] IResultObject interface for the parent of the snap-in.
- resultObject
[in] IResultObject interface for the result object for the snap-in.
- namedValues
[in] SmsNamedValuesDictionary object for the form.
- objectClass
[in] Name of the class that is associated with the form.
- nodeDescription
[in] System.Object instance for the node description.
- selectionSharedData
[in] Microsoft.ManagementConsole.SharedData object for the selection.
- dataUpdatedDelegate
[in] PropertyDataUpdated delegate.
- saveXmlTemplate
[in] true to save the form data to the XML template.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | The dialogData parameter cannot be null. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also
Reference
UtilityClass Class
UtilityClass Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
PropertyDataUpdated Delegate
SmsDialogData Class
SmsNamedValuesDictionary
SmsSnapInBase Class
ConnectionManagerBase
IResultObject