Partager via


NoExceptionAttribute Classe

Définition

Indique si le type déclenche des 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
Héritage
NoExceptionAttribute
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 2004 (introduit dans 10.0.19041.0)
API contract
Windows.Foundation.FoundationContract (introduit dans v4.0)

Constructeurs

NoExceptionAttribute()

Crée et initialise une nouvelle instance de l’attribut.

S’applique à