| Visual Basic (Declaration) | |
|---|---|
Public Overloads MustOverride Function Create( _ ByVal modeConfigurationType As Type, _ ByVal name As String _ ) As Mode | |
| C# | |
|---|---|
public abstract Mode Create( Type modeConfigurationType, string name ) | |
| C++/CLI | |
|---|---|
public: abstract Mode^ Create( Type^ modeConfigurationType, String^ name ) | |
Parameters
- modeConfigurationType
- Type to use for ModeConfiguration of new Mode.
- name
- Name to use for created Mode.
Return Value
A handle to the newly created mode.| Exception | Description |
|---|---|
| System.ArgumentException | Thrown if modeConfigurationType is not supported. |
| System.ArgumentException | Thrown if the supplied name already exists in the collection, or if string is an invalid name. |
The configuration type is fixed for the life of the Mode; it cannot be changed after creation. Use a different Mode to drive measurements of a different type.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)