Metodo GelProperty.RegisterWpfProperty<TOwner>
Spazio dei nomi: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Sintassi
'Dichiarazione
Public Shared Function RegisterWpfProperty(Of TOwner) ( _
name As String, _
propertyType As Type, _
defaultValueCreator As Func<(Of <<'(Object>)>>) _
) As GelProperty
public static GelProperty RegisterWpfProperty<TOwner>(
string name,
Type propertyType,
Func<(Of <<'(Object>)>>) defaultValueCreator
)
Parametri di tipo
- TOwner
Parametri
- name
Tipo: System.String
- propertyType
Tipo: System.Type
- defaultValueCreator
Tipo: System.Func<Object>
Valore restituito
Tipo: Microsoft.Internal.VisualStudio.PlatformUI.GelProperty
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.