'Declaration
<SuppressMessageAttribute(Category="Microsoft.Performance",
CheckId="CA1820:TestForEmptyStringsUsingStringLength",
Scope="",
Target="",
MessageId="",
Justification="Need only check for empty, not null. Different exceptions thrown for each case.")>
Public Function Remove( _
ByVal As String _
) As Boolean
'Usage
Dim instance As ContextMenus
Dim name As String
Dim value As Boolean
value = instance.Remove(name)
[SuppressMessage(Category="Microsoft.Performance",
CheckId="CA1820:TestForEmptyStringsUsingStringLength",
Scope="",
Target="",
MessageId="",
Justification="Need only check for empty, not null. Different exceptions thrown for each case.")]
public bool Remove(
string
)
Parameters
- name
- The descriptive name of the menu to remove
Return Value
True if the remove was successful, false if the menu name could not be found or an error occurred