Class CommandVisibilityAttribute
- Namespace
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.Attributes
- Assembly
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.dll
Command visiblity attribute.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class CommandVisibilityAttribute : Attribute, _Attribute
- Inheritance
-
CommandVisibilityAttribute
- Implements
- Inherited Members
Remarks
AddInBase will ignore multiple attributes with the same menu id and will only pick one.
Constructors
CommandVisibilityAttribute()
Creates new instance of this class.
public CommandVisibilityAttribute()
CommandVisibilityAttribute(int)
Creates a new instance of this class.
public CommandVisibilityAttribute(int commandId)
Parameters
commandId
intCommand ID.
CommandVisibilityAttribute(int, EdmSysPerm)
Creates a new instance of this class.
public CommandVisibilityAttribute(int commandId, EdmSysPerm onlyShowToUsersWithThesePermissions)
Parameters
commandId
intCommand id.
onlyShowToUsersWithThesePermissions
EdmSysPermOnly show this command to users who have these permissions.
CommandVisibilityAttribute(int, string[])
Create a new instance of this class.
public CommandVisibilityAttribute(int commandId, string[] hideFromTheseUserOrGroupNames)
Parameters
Properties
CommandID
ID of the affected command.
public int CommandID { get; set; }
Property Value
HideFromTheseUserOrGroupNames
Hide from these user or group names.
public string[] HideFromTheseUserOrGroupNames { get; set; }
Property Value
- string[]
OnlyShowToUsersWithThesePermissions
Sets or gets the permissions of the users to whom to show the command.
public EdmSysPerm OnlyShowToUsersWithThesePermissions { get; set; }
Property Value
- EdmSysPerm