NativeMarshallingAttribute Klasa

Definicja

Atrybut używany do udostępniania domyślnego niestandardowego typu marshallera dla danego typu zarządzanego.

public ref class NativeMarshallingAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Struct)]
public sealed class NativeMarshallingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Struct)>]
type NativeMarshallingAttribute = class
    inherit Attribute
Public NotInheritable Class NativeMarshallingAttribute
Inherits Attribute
Dziedziczenie
NativeMarshallingAttribute
Atrybuty

Uwagi

Ten atrybut jest rozpoznawany przez generatory źródeł dostarczone przez środowisko uruchomieniowe dla scenariuszy międzyoperacyjności generowanych przez źródło. Nie jest on używany przez system marshallingu międzyoperacyjności w czasie wykonywania.

Konstruktory

NativeMarshallingAttribute(Type)

Inicjuje NativeMarshallingAttribute nowe wystąpienie klasy , które zapewnia natywny typ marshallingu.

Właściwości

NativeType

Pobiera typ marshallera używany do konwertowania typu przypisanego z zarządzanego na kod natywny. Ten typ musi być przypisany za pomocą polecenia System.Runtime.InteropServices.Marshalling.CustomTypeMarshallerAttribute

TypeId

Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego Attributeelementu .

(Odziedziczone po Attribute)

Metody

Equals(Object)

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

(Odziedziczone po Attribute)
GetHashCode()

Zwraca wartość skrótu dla tego wystąpienia.

(Odziedziczone po Attribute)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
IsDefaultAttribute()

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)

Po przesłonięciu w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi.

(Odziedziczone po Attribute)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy