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.GenerateExtenderSet

Generates a single property set statement for an extender property.

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

Parameters

provider
The object providing this extender property.
objectName
The name of the 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 instance.
prop
A PropertyDescriptor that represents the property to set.
pv
A PropertyValue that represents the value to set.

Return Value

An ICodeStatement that can persist the extender property.

See Also

ComponentModelPersister Class | ComponentModelPersister Members | System.ComponentModel.Design Namespace