AttachedPropertyBrowsableForTypeAttribute Classe

Definizione

Specifica che una proprietà associata è esplorabile solo per gli elementi che derivano da un tipo specificato.

public ref class AttachedPropertyBrowsableForTypeAttribute sealed : System::Windows::AttachedPropertyBrowsableAttribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class AttachedPropertyBrowsableForTypeAttribute : System.Windows.AttachedPropertyBrowsableAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type AttachedPropertyBrowsableForTypeAttribute = class
    inherit AttachedPropertyBrowsableAttribute
Public NotInheritable Class AttachedPropertyBrowsableForTypeAttribute
Inherits AttachedPropertyBrowsableAttribute
Ereditarietà
AttachedPropertyBrowsableForTypeAttribute
Attributi

Commenti

Il significato del termine browsable usato nelle descrizioni di questo attributo .NET Framework è analogo alle descrizioni fornite per BrowsableAttribute, ma lo stato esplorabile per una proprietà associata è particolarmente rilevante per le informazioni sulle proprietà per Extensible Application Markup Language (XAML), perché una proprietà associata è principalmente un concetto XAML.

Se per un attributo .NET Framework viene specificato più di un AttachedPropertyBrowsableForTypeAttribute tipo, la proprietà è esplorabile se un tipo specificato corrisponde (logico o). Il tipo può anche essere un'interfaccia.

Questo attributo .NET Framework specifica AllowMultipletrue.

Questo attributo .NET Framework deve essere applicato solo alla funzione di accesso get delle definizioni di proprietà associate. Non applicare questo attributo .NET Framework alla funzione di accesso set. Anche se in modo intuitivo è l'operazione impostata resa esplorabile per XAML sugli elementi pertinenti, è la presenza e le caratteristiche della funzione di accesso get nella proprietà che definisce l'elemento che controlla il comportamento effettivo.

Per informazioni generali sulla dichiarazione delle proprietà associate, vedere Panoramica delle proprietà associate.

Costruttori

AttachedPropertyBrowsableForTypeAttribute(Type)

Inizializza una nuova istanza della classe AttachedPropertyBrowsableForTypeAttribute utilizzando le classi fornite targetType.

Proprietà

TargetType

Ottiene il tipo di base che definisce l'ambito dell'uso della proprietà associata in cui si applica questo attributo .NET Framework.

TypeId

Ottiene un identificatore di tipo univoco per questo AttachedPropertyBrowsableForTypeAttribute attributo .NET Framework.

Metodi

Equals(Object)

Determina se l'attributo .NET Framework corrente AttachedPropertyBrowsableForTypeAttribute è uguale a un oggetto specificato.

GetHashCode()

Restituisce il codice hash per questo AttachedPropertyBrowsableForTypeAttribute attributo .NET Framework.

GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()

In caso di override in una classe derivata, indica se il valore di questa istanza è il valore predefinito per la classe derivata.

(Ereditato da Attribute)
Match(Object)

Quando è sottoposto a override in una classe derivata, restituisce un valore che indica se questa istanza equivale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Esegue il mapping di un set di nomi a un set corrispondente di ID dispatch.

(Ereditato da Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera le informazioni sul tipo relative a un oggetto, che possono essere usate per ottenere informazioni sul tipo relative a un'interfaccia.

(Ereditato da Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Recupera il numero delle interfacce di informazioni sul tipo fornite da un oggetto (0 o 1).

(Ereditato da Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Fornisce l'accesso a proprietà e metodi esposti da un oggetto.

(Ereditato da Attribute)

Si applica a