Represents a DynamicProperty that contains a value of a simple type.
Object Model
Syntax
| Visual Basic (Declaration) | |
|---|
Public NotInheritable Class DynamicProperty |
| C# | |
|---|
public sealed class DynamicProperty |
| Managed Extensions for C++ | |
|---|
public __gc __sealed class DynamicProperty |
| C++/CLI | |
|---|
public ref class DynamicProperty sealed |
Example
The following example shows how to use the DynamicProperty class in your application.
| C# | Copy Code |
|---|
// ... Other code // Create a DynamicProperty of type string. DynamicProperty prop1 = new DynamicProperty("PLZ", typeof(string)); prop.Value = "1234"; // Create a DynamicProperty of type int. DynamicProperty prop1 = new DynamicProperty("Age", typeof(int)); prop1.Value = 22; DynamicType type = new DynamicType(); type.Values.Add("small"); type.Values.Add("medium"); type.Values.Add("large"); // Create a DynamicProperty using a DynamicType. DynamicProperty prop1 = new DynamicProperty("Size", typeof(string), type); prop1.Value = "small"; // ... Other code |
Remarks
Inheritance Hierarchy
System.Object
Chili.Opf3.DynamicProperties.DynamicProperty
Requirements
Namespace: Chili.Opf3.DynamicProperties
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)
See Also