44 lines
2.0 KiB
C#
44 lines
2.0 KiB
C#
|
// <auto-generated/>
|
||
|
#pragma warning disable
|
||
|
#nullable enable annotations
|
||
|
|
||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||
|
|
||
|
namespace System.Runtime.InteropServices
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Any method marked with <see cref="global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute" /> can be directly called from
|
||
|
/// native code. The function token can be loaded to a local variable using the <see href="https://docs.microsoft.com/dotnet/csharp/language-reference/operators/pointer-related-operators#address-of-operator-">address-of</see> operator
|
||
|
/// in C# and passed as a callback to a native method.
|
||
|
/// </summary>
|
||
|
/// <remarks>
|
||
|
/// Methods marked with this attribute have the following restrictions:
|
||
|
/// * Method must be marked "static".
|
||
|
/// * Must not be called from managed code.
|
||
|
/// * Must only have <see href="https://docs.microsoft.com/dotnet/framework/interop/blittable-and-non-blittable-types">blittable</see> arguments.
|
||
|
/// </remarks>
|
||
|
[global::System.AttributeUsage(global::System.AttributeTargets.Method, Inherited = false)]
|
||
|
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
||
|
[global::System.Diagnostics.Conditional("MULTI_TARGETING_SUPPORT_ATTRIBUTES")]
|
||
|
public sealed class UnmanagedCallersOnlyAttribute : global::System.Attribute
|
||
|
{
|
||
|
public UnmanagedCallersOnlyAttribute()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Optional. If omitted, the runtime will use the default platform calling convention.
|
||
|
/// </summary>
|
||
|
/// <remarks>
|
||
|
/// Supplied types must be from the official "System.Runtime.CompilerServices" namespace and
|
||
|
/// be of the form "CallConvXXX".
|
||
|
/// </remarks>
|
||
|
public global::System.Type[]? CallConvs;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Optional. If omitted, no named export is emitted during compilation.
|
||
|
/// </summary>
|
||
|
public string? EntryPoint;
|
||
|
}
|
||
|
}
|