Exportar (0) Imprimir
Expandir Tudo
Expandir Minimizar
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original

Enumeração MethodImplAttributes

Specifies flags for the attributes of a method implementation.

Namespace:  System.Reflection
Assembly:  mscorlib (em mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
public enum MethodImplAttributes

Nome do membroDescrição
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkCodeTypeMask Specifies flags about code type.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkIL Specifies that the method implementation is in Microsoft intermediate language (MSIL).
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkNative Specifies that the method implementation is native.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkOPTIL Specifies that the method implementation is in Optimized Intermediate Language (OPTIL).
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkRuntime Specifies that the method implementation is provided by the runtime.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkManagedMask Specifies whether the method is implemented in managed or unmanaged code.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkUnmanaged Specifies that the method is implemented in unmanaged code.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkManaged Specifies that the method is implemented in managed code.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkForwardRef Specifies that the method is not defined.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkPreserveSig Specifies that the method signature is exported exactly as declared.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkInternalCall Specifies an internal call.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkSynchronized Specifies that the method is single-threaded through the body. Static methods (Shared in Visual Basic) lock on the type, whereas instance methods lock on the instance. You can also use the C# lock statement or the Visual Basic Lock function for this purpose.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkNoInlining Specifies that the method cannot be inlined.
Compatível com o .NET Compact FrameworkCompatível com o XNA FrameworkMaxMethodImplVal Specifies a range check value.
NoOptimization Specifies that the method is not optimized by the just-in-time (JIT) compiler or by native code generation (see Ngen.exe) when debugging possible code generation problems.

The attributes are combined using the bitwise OR operation as follows:

Code implementation masks:

  • CodeTypeMask

  • IL

  • Native

  • OPTIL

  • Runtime

Managed masks:

  • ManagedMask

  • Unmanaged

  • Managed

Implementation information and interop masks:

  • ForwardRef

  • PreserveSig

  • InternalCall

  • Synchronized

  • NoInlining

  • NoOptimization

  • MaxMethodImplVal

ObservaçãoObservação:

Locking on the instance or on the type, as with the Synchronized flag, is not recommended for public types, because code other than your own can take locks on public types and instances. This might cause deadlocks or other synchronization problems.

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360

o.NET Framework e.NET Compact Framework não oferecem suporte a todas as versões de cada plataforma. Para obter uma lista de versões suportadas, consulte Requisitos de sistema do .NET framework.

.NET Framework

Compatível com: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Compatível com: 3.5, 2.0, 1.0

XNA Framework

Compatível com: , 1.0

Contribuições da comunidade

ADICIONAR
A Microsoft está realizando uma pesquisa online para saber sua opinião sobre o site do MSDN. Se você optar por participar, a pesquisa online lhe será apresentada quando você sair do site do MSDN.

Deseja participar?
Mostrar:
© 2014 Microsoft