GelProperty.RegisterLazyInitializedWpfProperty<TOwner> Method
Microsoft internal use only.
Registers a Windows Presentation Foundation (WPF) property with a getter callback.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function RegisterLazyInitializedWpfProperty(Of TOwner) ( _
name As String, _
propertyType As Type, _
getter As GelPropertyGetterCallback _
) As GelProperty
public static GelProperty RegisterLazyInitializedWpfProperty<TOwner>(
string name,
Type propertyType,
GelPropertyGetterCallback getter
)
public:
generic<typename TOwner>
static GelProperty^ RegisterLazyInitializedWpfProperty(
String^ name,
Type^ propertyType,
GelPropertyGetterCallback^ getter
)
static member RegisterLazyInitializedWpfProperty :
name:string *
propertyType:Type *
getter:GelPropertyGetterCallback -> GelProperty
JScript does not support generic types or methods.
Type Parameters
- TOwner
Owning type.
Parameters
name
Type: System.StringName of the new property.
propertyType
Type: System.TypeType of the new property.
getter
Type: Microsoft.Internal.VisualStudio.PlatformUI.GelPropertyGetterCallbackThe getter 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.