MenuGroup Constructor (String)
Initializes a new instance of the MenuGroup class that has the specified group name.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub New ( _
groupName As String _
)
public MenuGroup(
string groupName
)
public:
MenuGroup(
String^ groupName
)
new :
groupName:string -> MenuGroup
public function MenuGroup(
groupName : String
)
Parameters
- groupName
Type: System.String
The name of the MenuGroup instance.
Remarks
MenuGroup creates either a submenu of menu items or a separator-delimited menu group.
.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
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionContextMenuProvider