IDispatchConstantAttribute Klasa
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Wskazuje, że wartość domyślna pola lub parametru przypisanego to wystąpienie klasy DispatchWrapper, gdzie WrappedObject parametr to null
.
public ref class IDispatchConstantAttribute sealed : System::Runtime::CompilerServices::CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IDispatchConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
type IDispatchConstantAttribute = class
inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
type IDispatchConstantAttribute = class
inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
type IDispatchConstantAttribute = class
inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IDispatchConstantAttribute = class
inherit CustomConstantAttribute
Public NotInheritable Class IDispatchConstantAttribute
Inherits CustomConstantAttribute
- Dziedziczenie
- Atrybuty
Ten atrybut można zastosować do pól lub parametrów.
Importer biblioteki typów używa tego atrybutu do odróżnienia wartości domyślnej typu VT_DISPATCH
od null
.
Aby uzyskać więcej informacji na temat atrybutów stałych, zobacz klasę CustomConstantAttribute .
Klasy w programie System.Runtime.CompilerServices są przeznaczone tylko dla autorów kompilatora.
IDispatch |
Inicjuje nowe wystąpienie klasy IDispatchConstantAttribute. |
Type |
Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego elementu Attribute. (Odziedziczone po Attribute) |
Value |
Pobiera stałą przechowywaną |
Equals(Object) |
Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi. (Odziedziczone po Attribute) |
Get |
Zwraca wartość skrótu dla tego wystąpienia. (Odziedziczone po Attribute) |
Get |
Type Pobiera bieżące wystąpienie. (Odziedziczone po Object) |
Is |
W przypadku zastąpienia w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną klasy pochodnej. (Odziedziczone po Attribute) |
Match(Object) |
W przypadku zastąpienia w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi. (Odziedziczone po Attribute) |
Memberwise |
Tworzy płytkią kopię bieżącego Objectelementu . (Odziedziczone po Object) |
To |
Zwraca ciąg reprezentujący bieżący obiekt. (Odziedziczone po Object) |
_Attribute. |
Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania. (Odziedziczone po Attribute) |
_Attribute. |
Pobiera informacje o typie obiektu, którego można użyć do pobrania informacji o typie interfejsu. (Odziedziczone po Attribute) |
_Attribute. |
Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1). (Odziedziczone po Attribute) |
_Attribute. |
Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt. (Odziedziczone po Attribute) |
Produkt | Wersje |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: