November Happy Hour will be moved to Thursday December 5th.

Struct ScriptManager.ObjectSettingPair

A client side setting containing a setting name and a setting value

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: EPiServer.ClientScript
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
protected struct ObjectSettingPair

Constructors

ObjectSettingPair(String, String)

Create a new name: value script setting

Declaration
public ObjectSettingPair(string name, string value)
Parameters
Type Name Description
System.String name

Name of the setting

System.String value

Value of the setting

Properties

Name

Name of the client side setting

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

Value

Value of the client side setting

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

Methods

Equals(Object)

Return true if the Name and Value of the supplied object instance is equal to the Name and Value of this ObjectSettingPair.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

Reference to an object instance

Returns
Type Description
System.Boolean

True if the current instance is equal to the supplied instance

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Return a hash code for the current instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

ToString()

Returns the name and value of the current instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string containing [Name]: [Value] of the instance.

Overrides
System.ValueType.ToString()

Operators

Equality(ScriptManager.ObjectSettingPair, ScriptManager.ObjectSettingPair)

Declaration
public static bool operator ==(ScriptManager.ObjectSettingPair a, ScriptManager.ObjectSettingPair b)
Parameters
Type Name Description
ScriptManager.ObjectSettingPair a
ScriptManager.ObjectSettingPair b
Returns
Type Description
System.Boolean

Inequality(ScriptManager.ObjectSettingPair, ScriptManager.ObjectSettingPair)

Declaration
public static bool operator !=(ScriptManager.ObjectSettingPair a, ScriptManager.ObjectSettingPair b)
Parameters
Type Name Description
ScriptManager.ObjectSettingPair a
ScriptManager.ObjectSettingPair b
Returns
Type Description
System.Boolean

Extension Methods