IUnknownConstantAttribute 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 dla pola lub parametru atrybutu jest wystąpieniem UnknownWrapper, gdzie jest WrappedObjectnull
. Klasa ta nie może być dziedziczona.
public ref class IUnknownConstantAttribute sealed : System::Runtime::CompilerServices::CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
public sealed class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
public sealed class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
type IUnknownConstantAttribute = class
inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
type IUnknownConstantAttribute = class
inherit CustomConstantAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter, Inherited=false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IUnknownConstantAttribute = class
inherit CustomConstantAttribute
Public NotInheritable Class IUnknownConstantAttribute
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_UNKNOWN
od null
.
Aby uzyskać więcej informacji na temat atrybutów stałych, zobacz klasę CustomConstantAttribute .
Klasy w System.Runtime.CompilerServices programie są przeznaczone tylko dla składników zapisywania kompilatora.
IUnknown |
Inicjuje nowe wystąpienie klasy IUnknownConstantAttribute. |
Type |
Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego Attributeelementu . (Odziedziczone po Attribute) |
Value |
Pobiera stałą |
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 wartość bieżącego wystąpienia. (Odziedziczone po Object) |
Is |
Podczas zastępowania w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną dla klasy pochodnej. (Odziedziczone po Attribute) |
Match(Object) |
Po przesłonięciu 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 dla obiektu, który może służyć do pobierania informacji o typie dla 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 2.0, Core 2.1, Core 2.2, 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 |
.NET Standard | 2.0, 2.1 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: