RegistrationAttribute.RegistrationContext.RemoveKeyIfEmpty Method
Removes the key of the specified name if it has no child key and no 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 RemoveKeyIfEmpty ( _
name As String _
)
public abstract void RemoveKeyIfEmpty(
string name
)
public:
virtual void RemoveKeyIfEmpty(
String^ name
) abstract
abstract RemoveKeyIfEmpty :
name:string -> unit
public abstract function RemoveKeyIfEmpty(
name : String
)
Parameters
- name
Type: System.String
The name of the key to remove.
.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.