Class CustomProperty
Stores a custom property.
Inheritance
System.Object
CustomProperty
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
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: BayesServer
Assembly: BayesServer.dll
Syntax
public sealed class CustomProperty : INotifyPropertyChanged
Constructors
CustomProperty(String)
Initializes a new instance of the CustomProperty class.
Declaration
public CustomProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the custom property, which must be unique per CustomPropertyCollection. |
CustomProperty(String, String)
Initializes a new instance of the CustomProperty class.
Declaration
public CustomProperty(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the custom property, which must be unique per CustomPropertyCollection. |
System.String | value | The custom value. |
Properties
Description
An optional description for the custom property.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets the name, which must be unique per CustomPropertyCollection.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Parent
Gets the parent collection, if set, otherwise null.
Declaration
public CustomPropertyCollection Parent { get; }
Property Value
Type | Description |
---|---|
CustomPropertyCollection |
Value
The custom property value. E.g. an XML string.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Copy()
Makes a copy of this instance.
Declaration
public CustomProperty Copy()
Returns
Type | Description |
---|---|
CustomProperty | The copy. |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged