Freigeben über


Compilerfehler CS0724

Aktualisiert: November 2007

Fehlermeldung

erfordert kein CLSCompliant-Attribut, da die Assembly kein CLSCompliant-Attribut aufweist.
does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute

Im folgenden Beispiel wird CS0724 generiert, da sich die throw-Anweisung im Block der finally-Klausel befindet.

Beispiel

CS0724 wird im folgenden Beispiel generiert.

// CS0724.cs
using System;

class X
{
    static void Test()
    {
        try
        {
            throw new Exception();
        }
        catch
        {
            try
            {
            }
            finally
            {
                throw; // CS0724
            }
        }
    }

    static void Main()
    {
    }
}