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!

ComponentDesigner.GetDefaultValue

Retrieves the default value for the given property. If there is no default value attribute, this will assume that comp already contains the default value and request the value directly from it.

[Visual Basic]
Protected Function GetDefaultValue( _
   ByVal comp As Object, _
   ByVal name As String _
) As Object
[C#]
protected object GetDefaultValue(
   object comp,
   string name
);
[C++]
protected: Object* GetDefaultValue(
   Object* comp,
   String* name
);
[JScript]
protected function GetDefaultValue(
   comp : Object,
   name : String
) : Object;

Parameters

comp
The component to retrieve the property on.
name
The name of the property.

Return Value

An object representing the default value for the property.

See Also

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