UnmanagedFunctionPointerAttribute(CallingConvention) Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da UnmanagedFunctionPointerAttribute classe com a convenção de chamada especificada.
public:
UnmanagedFunctionPointerAttribute(System::Runtime::InteropServices::CallingConvention callingConvention);
public UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention);
new System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute : System.Runtime.InteropServices.CallingConvention -> System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute
Public Sub New (callingConvention As CallingConvention)
Parâmetros
- callingConvention
- CallingConvention
A convenção de chamada especificada.
Observações
Este método especifica a convenção de chamada para o delegado em código não gerido e é o uso mais comum do UnmanagedFunctionPointerAttribute atributo. Podes definir o callingConvention parâmetro para um dos valores na CallingConvention enumeração.