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 (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public MustOverride Sub RemoveKeyIfEmpty ( _
name As String _
)
'使用
Dim instance As RegistrationAttribute..::.RegistrationContext
Dim name As String
instance.RemoveKeyIfEmpty(name)
public abstract void RemoveKeyIfEmpty(
string name
)
public:
virtual void RemoveKeyIfEmpty(
String^ name
) abstract
public abstract function RemoveKeyIfEmpty(
name : String
)
Parameters
name
Type: System.StringThe name of the key to remove.
Permissions
- 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.RegistrationContext Class