Show / Hide Table of Contents

    Class CommandAttribute

    Marks the associated method as a command, allowing it to be loaded by the QuantumConsoleProcessor. This means it will be usable as a command from a Quantum Console.

    Inheritance
    Object
    Attribute
    CommandAttribute
    Namespace: QFSW.QC
    Assembly: QFSW.QC.dll
    Syntax
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
    public sealed class CommandAttribute : Attribute, _Attribute

    Constructors

    CommandAttribute(String, MonoTargetType, Platform)

    Declaration
    public CommandAttribute(string aliasOverride, MonoTargetType targetType, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.Stadia | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms)
    Parameters
    Type Name Description
    String aliasOverride
    MonoTargetType targetType
    Platform supportedPlatforms

    CommandAttribute(String, Platform, MonoTargetType)

    Declaration
    public CommandAttribute(string aliasOverride = "", Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.Stadia | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms, MonoTargetType targetType = MonoTargetType.Single)
    Parameters
    Type Name Description
    String aliasOverride
    Platform supportedPlatforms
    MonoTargetType targetType

    CommandAttribute(String, String, MonoTargetType, Platform)

    Declaration
    public CommandAttribute(string aliasOverride, string description, MonoTargetType targetType, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.Stadia | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms)
    Parameters
    Type Name Description
    String aliasOverride
    String description
    MonoTargetType targetType
    Platform supportedPlatforms

    CommandAttribute(String, String, Platform, MonoTargetType)

    Declaration
    public CommandAttribute(string aliasOverride, string description, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.Stadia | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms, MonoTargetType targetType = MonoTargetType.Single)
    Parameters
    Type Name Description
    String aliasOverride
    String description
    Platform supportedPlatforms
    MonoTargetType targetType

    Fields

    Alias

    Declaration
    public readonly string Alias
    Field Value
    Type Description
    String

    Description

    Declaration
    public readonly string Description
    Field Value
    Type Description
    String

    MonoTarget

    Declaration
    public readonly MonoTargetType MonoTarget
    Field Value
    Type Description
    MonoTargetType

    SupportedPlatforms

    Declaration
    public readonly Platform SupportedPlatforms
    Field Value
    Type Description
    Platform

    Valid

    Declaration
    public readonly bool Valid
    Field Value
    Type Description
    Boolean

    Extension Methods

    ArraySingleExtensions.AsArraySingle<T>(T)
    CollectionExtensions.Yield<T>(T)
    Quantum Console by QFSW
    Back to top