Show / Hide Table of Contents

Class TextSetting

Setting that takes a text string

Inheritance
System.Object
XboxConfigSetting
TextSetting
IdleShutdownTimeoutTextSetting
Implements
System.ComponentModel.IDataErrorInfo
Inherited Members
XboxConfigSetting.Name
XboxConfigSetting.Changed
XboxConfigSetting.HasNonMatchingProperties
XboxConfigSetting.ValidateValue(Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Devices
Assembly: Phoenix.Devices.Xbox.dll
Syntax
public class TextSetting : XboxConfigSetting, IDataErrorInfo

Constructors

View Source

TextSetting(String, String, Boolean)

Initializes a new instance of the TextSetting class.

Declaration
public TextSetting(string friendlyName, string initialValue, bool hasNonMatchingProperties)
Parameters
Type Name Description
System.String friendlyName

The user-friendly name of the setting.

System.String initialValue

The initial value of the setting.

System.Boolean hasNonMatchingProperties

Whether or not the setting has non matching properties among the selected devices

View Source

TextSetting(String, String, Boolean, Func<String, ValidationResult>)

Initializes a new instance of the TextSetting class.

Declaration
public TextSetting(string friendlyName, string initialValue, bool hasNonMatchingProperties, Func<string, ValidationResult> validator)
Parameters
Type Name Description
System.String friendlyName

The user-friendly name of the setting.

System.String initialValue

The initial value of the setting.

System.Boolean hasNonMatchingProperties

Whether or not the setting has non matching properties among the selected devices

System.Func<System.String, System.Windows.Controls.ValidationResult> validator

The method validating the setting.

Properties

View Source

Error

Gets an error message indicating what is wrong with this setting.

Declaration
public string Error { get; }
Property Value
Type Description
System.String
View Source

Item[String]

Gets the error message for the property with the given name.

Declaration
public virtual string this[string columnName] { get; }
Parameters
Type Name Description
System.String columnName

Name of the property whose error message to get

Property Value
Type Description
System.String

Error message for the property, or string.Empty if there is no error

View Source

Validator

Gets the method for validating this setting.

Declaration
public Func<string, ValidationResult> Validator { get; }
Property Value
Type Description
System.Func<System.String, System.Windows.Controls.ValidationResult>
View Source

Value

Gets or sets the value of this setting.

Declaration
public string Value { get; set; }
Property Value
Type Description
System.String

Implements

System.ComponentModel.IDataErrorInfo
  • View Source
In This Article
Back to top Generated by DocFX