GelProperty.RegisterBooleanProperty<TOwner> Method (String, Boolean, GelPropertyChangedCallback, GelPropertyValidatorCallback)
Microsoft internal use only.
Registers a Boolean property.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Shared Function RegisterBooleanProperty(Of TOwner) ( _
name As String, _
defaultValue As Boolean, _
propertyChanged As GelPropertyChangedCallback, _
validator As GelPropertyValidatorCallback _
) As GelProperty
public static GelProperty RegisterBooleanProperty<TOwner>(
string name,
bool defaultValue,
GelPropertyChangedCallback propertyChanged,
GelPropertyValidatorCallback validator
)
Type Parameters
- TOwner
Owning type.
Parameters
- name
Type: System.String
Name of the property.
- defaultValue
Type: System.Boolean
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.
Return Value
Type: Microsoft.Internal.VisualStudio.PlatformUI.GelProperty
The registered property.
.NET Framework Security
- 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.