Sdílet prostřednictvím


NoExceptionAttribute Class

Definition

Indicates if the type raises exceptions.

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
Inheritance
NoExceptionAttribute
Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.FoundationContract (introduced in v4.0)

Constructors

NoExceptionAttribute()

Creates and initializes a new instance of the attribute.

Applies to