共用方式為


NoExceptionAttribute 類別

定義

指出型別是否引發例外狀況。

public ref class NoExceptionAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeName("noexcept")]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 262144)]
class NoExceptionAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeName("noexcept")]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 262144)]
public sealed class NoExceptionAttribute : Attribute
function NoExceptionAttribute()
Public NotInheritable Class NoExceptionAttribute
Inherits Attribute
繼承
NoExceptionAttribute
屬性

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v4.0 引進)

建構函式

NoExceptionAttribute()

建立並初始化 屬性的新實例。

適用於