Class PropertyElementCollection
Represents property element collection.
Inheritance
System.Object
PropertyElementCollection
Namespace: Mediachase.BusinessFoundation.Data.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class PropertyElementCollection : Collection<PropertyElement>
Constructors
PropertyElementCollection()
Initializes a new instance of the PropertyElementCollection class.
Declaration
public PropertyElementCollection()
Properties
Item[String]
Gets or sets the System.Object with the specified name.
Declaration
public PropertyElement this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Property Value
| Type | Description |
|---|---|
| PropertyElement |
Methods
Add(String, Object)
Adds the specified name.
Declaration
public void Add(string name, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| System.Object | value | The value. |
AddRange(PropertyElement[])
Adds the range.
Declaration
public void AddRange(params PropertyElement[] properties)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyElement[] | properties | The properties. |
Contains(String)
Determines whether [contains] [the specified name].
Declaration
public bool Contains(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
GetValue(String)
Gets the value.
Declaration
public virtual object GetValue(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| System.Object |
GetValue<T>(String)
Gets the value.
Declaration
public T GetValue<T>(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
GetValue<T>(String, T)
Gets the value.
Declaration
public T GetValue<T>(string name, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| T | defaultValue | The default value. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |