MarshalingBehaviorAttribute 类

定义

指示Windows 运行时组件的封送行为。

public ref class MarshalingBehaviorAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class MarshalingBehaviorAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class MarshalingBehaviorAttribute : Attribute
function MarshalingBehaviorAttribute(behavior)
Public NotInheritable Class MarshalingBehaviorAttribute
Inherits Attribute
继承
MarshalingBehaviorAttribute
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.FoundationContract (在 v1.0 中引入)

构造函数

MarshalingBehaviorAttribute(MarshalingType)

创建并初始化属性的新实例。

适用于

另请参阅