Export (0) Print
Expand All

Switch Members

Provides an abstract base class to create new debugging and tracing switches.

The following tables list the members exposed by the Switch type.

  Name Description
Protected method Switch Overloaded. Initializes a new instance of the Switch class.

(see also Protected Properties )
  Name Description
Public property Attributes Gets the custom switch attributes defined in the application configuration file.
Public property Description Gets a description of the switch.
Public property DisplayName Gets a name used to identify the switch.

  Name Description
Protected property SwitchSetting Gets or sets the current setting for this switch.
Protected property Value Gets or sets the value of the switch.

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetSupportedAttributes Gets the custom attributes supported by the switch.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnSwitchSettingChanged Invoked when the SwitchSetting property is changed.
Protected method OnValueChanged Invoked when the Value property is changed.

Community Additions

© 2015 Microsoft