RuntimeCompatibilityAttribute Constructor
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Initialiseert een nieuw exemplaar van de RuntimeCompatibilityAttribute klasse.
public:
RuntimeCompatibilityAttribute();
public RuntimeCompatibilityAttribute();
Public Sub New ()
Voorbeelden
In het volgende codevoorbeeld wordt het RuntimeCompatibilityAttribute kenmerk toegepast op een assembly om uitzonderingsterugloop uit te schakelen.
using namespace System;
using namespace System::Runtime::CompilerServices;
[assembly:RuntimeCompatibilityAttribute(WrapNonExceptionThrows = false)];
void run()
{
Console::WriteLine("The RuntimeCompatibilityAttribute was applied to disable exception wrapping.");
}
int main()
{
run();
return 0;
}