共用方式為


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

'宣告
Public MustOverride Sub RemoveKeyIfEmpty ( _
    name As String _
)
public abstract void RemoveKeyIfEmpty(
    string name
)

Parameters

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

Microsoft.VisualStudio.Shell Namespace