Freigeben über


UtilityClass.CreateForm Method

Creates a form by using .NET reflection.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
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
Dim returnValue As Form

returnValue = UtilityClass.CreateForm(dialogData, connectionManager, snapIn, parentObject, resultObject, namedValues, objectClass, nodeDescription, selectionSharedData, dataUpdatedDelegate, saveXmlTemplate)

Syntax

'Declaration
Public Shared Function CreateForm ( _
    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 _
) As Form
public static Form CreateForm (
    SmsDialogData dialogData,
    ConnectionManagerBase connectionManager,
    SmsSnapInBase snapIn,
    IResultObject parentObject,
    IResultObject resultObject,
    SmsNamedValuesDictionary namedValues,
    string objectClass,
    Object nodeDescription,
    SharedData selectionSharedData,
    PropertyDataUpdated dataUpdatedDelegate,
    bool saveXmlTemplate
)
public:
static Form^ CreateForm (
    SmsDialogData^ dialogData, 
    ConnectionManagerBase^ connectionManager, 
    SmsSnapInBase^ snapIn, 
    IResultObject^ parentObject, 
    IResultObject^ resultObject, 
    SmsNamedValuesDictionary^ namedValues, 
    String^ objectClass, 
    Object^ nodeDescription, 
    SharedData^ selectionSharedData, 
    PropertyDataUpdated^ dataUpdatedDelegate, 
    bool saveXmlTemplate
)
public static Form CreateForm (
    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 CreateForm (
    dialogData : SmsDialogData, 
    connectionManager : ConnectionManagerBase, 
    snapIn : SmsSnapInBase, 
    parentObject : IResultObject, 
    resultObject : IResultObject, 
    namedValues : SmsNamedValuesDictionary, 
    objectClass : String, 
    nodeDescription : Object, 
    selectionSharedData : SharedData, 
    dataUpdatedDelegate : PropertyDataUpdated, 
    saveXmlTemplate : boolean
) : Form

Parameters

  • 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.
  • 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.
  • 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