NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentModelPersister.GeneratePropertySet (String[], Object, PropertyDescriptor, PropertyValue)

Generates a single property set statement.

[Visual Basic]
Overloads Protected Function GeneratePropertySet( _
   ByVal objectName() As String, _
   ByVal component As Object, _
   ByVal prop As PropertyDescriptor, _
   ByVal pv As PropertyValue _
) As ICodeStatement
[C#]
protected ICodeStatement GeneratePropertySet(
   string[] objectName,
   object component,
   PropertyDescriptor prop,
   PropertyValue pv
);
[C++]
protected: ICodeStatement* GeneratePropertySet(
   String* objectName[],
   Object* component,
   PropertyDescriptor* prop,
   PropertyValue* pv
);
[JScript]
protected function GeneratePropertySet(
   objectName : String[],
   component : Object,
   prop : PropertyDescriptor,
   pv : PropertyValue
) : ICodeStatement;

Parameters

objectName
Name of object to set the property on. Note: This is a string array to support setting properties on sub objects, like "Foo.Bar.All = ...". In this case the string array would contain "Foo" and "Bar".
component
The component the property belongs to.
prop
A PropertyDescriptor that represents the property to set.
pv
A PropertyValue that represents the value to set.

See Also

ComponentModelPersister Class | ComponentModelPersister Members | System.ComponentModel.Design Namespace | ComponentModelPersister.GeneratePropertySet Overload List