Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the name to the given value.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)
Syntax
'Declaration
Public MustOverride Sub SetValue ( _
valueName As String, _
value As Object _
)
public abstract void SetValue(
string valueName,
Object value
)
public:
virtual void SetValue(
String^ valueName,
Object^ value
) abstract
abstract SetValue :
valueName:string *
value:Object -> unit
public abstract function SetValue(
valueName : String,
value : Object
)
Parameters
valueName
Type: StringThe name of the value to set. If valueName is null or an empty string, SetValue sets the default value for the current Key.
value
Type: ObjectAn object to store in the value. Use an empty string or nulla null reference (Nothing in Visual Basic) to set the default value for a key. If the object is a numeric type that can be converted to an integer, it is stored as a DWORD registry encoding. Otherwise it is stored as a string.
Remarks
This method is typically called from within the Register method of a class derived from RegistrationAttribute.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
RegistrationAttribute.Key Class