GelProperty::RegisterStringProperty<TOwner> Method (String, String, GelPropertyChangedCallback, GelPropertyValidatorCallback)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Microsoft internal use only.
Registers a String property.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assemblies: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
public: generic<typename TOwner> static GelProperty^ RegisterStringProperty( String^ name, String^ defaultValue, GelPropertyChangedCallback^ propertyChanged, GelPropertyValidatorCallback^ validator )
Type Parameters
- TOwner
Owning type.
Parameters
- name
- Type: System::String
Name of the property.
- defaultValue
- Type: System::String
Default value of the property.
- propertyChanged
- Type: Microsoft.Internal.VisualStudio.PlatformUI::GelPropertyChangedCallback
The changed function.
- validator
- Type: Microsoft.Internal.VisualStudio.PlatformUI::GelPropertyValidatorCallback
The validator function.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: