 | DropDownCheckListInitializeAndSetT Method |
Initializes the check list from an enumerated type and sets its initial checks.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.10.1
Syntaxpublic void InitializeAndSet<T>(
T val,
ResourceManager mgr,
string prefix = null,
T[] exclude = null
)
where T : struct, new(), IConvertible
Public Sub InitializeAndSet(Of T As {Structure, New, IConvertible}) (
val As T,
mgr As ResourceManager,
Optional prefix As String = Nothing,
Optional exclude As T() = Nothing
)
public:
generic<typename T>
where T : value class, gcnew(), IConvertible
void InitializeAndSet(
T val,
ResourceManager^ mgr,
String^ prefix = nullptr,
array<T>^ exclude = nullptr
)
Request Example
View SourceParameters
- val
- Type: T
The flag value used to check the items. - mgr
- Type: System.ResourcesResourceManager
The ResourceManager that holds the display text for each enumerated value. - prefix (Optional)
- Type: SystemString
(Optional) The prefix used in front of the enumeration value to pull from the resource file. If null, then this value defaults to the name of
the enumerated type specified by T.
- exclude (Optional)
- Type: T
(Optional) The excluded items from the enumerated type.
Type Parameters
- T
- Enumerated type used to set the items.
See Also