ExtensionMethodsSetValueSafeT Method (RegistryKey, String, NullableT, RegistryValueKind) |
Namespace:
Arsenal.ImageMounter.Extensions
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static void SetValueSafe<T>(
this RegistryKey RegKey,
string name,
Nullable<T> value,
RegistryValueKind valueKind
)
where T : struct, new()
<ExtensionAttribute>
Public Shared Sub SetValueSafe(Of T As {Structure, New}) (
RegKey As RegistryKey,
name As String,
value As Nullable(Of T),
valueKind As RegistryValueKind
)
public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew()
static void SetValueSafe(
RegistryKey^ RegKey,
String^ name,
Nullable<T> value,
RegistryValueKind valueKind
)
[<ExtensionAttribute>]
static member SetValueSafe :
RegKey : RegistryKey *
name : string *
value : Nullable<'T> *
valueKind : RegistryValueKind -> unit when 'T : struct, new()
Parameters
- RegKey
- Type: Microsoft.Win32RegistryKey
- name
- Type: SystemString
- value
- Type: SystemNullableT
- valueKind
- Type: Microsoft.Win32RegistryValueKind
Type Parameters
- T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RegistryKey. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also