Editare

Partajați prin


NativeMarshallingAttribute Class

Definition

Attribute used to provide a default custom marshaller type for a given managed type.

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.Interface | 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
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)>]
type NativeMarshallingAttribute = class
    inherit Attribute
Public NotInheritable Class NativeMarshallingAttribute
Inherits Attribute
Inheritance
NativeMarshallingAttribute
Attributes

Remarks

This attribute is recognized by the runtime-provided source generators for source-generated interop scenarios. It is not used by the interop marshalling system at runtime.

Constructors

NativeMarshallingAttribute(Type)

Initializes a new instance of NativeMarshallingAttribute that provides a native marshalling type.

Properties

NativeType

Gets the marshaller type used to convert the attributed type from managed to native code.

TypeId

When implemented in a derived class, gets a unique identifier for this Attribute.

(Inherited from Attribute)

Methods

Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

(Inherited from Attribute)
GetHashCode()

Returns the hash code for this instance.

(Inherited from Attribute)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsDefaultAttribute()

When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Inherited from Attribute)
Match(Object)

When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Inherited from Attribute)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to