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
Este tópico ainda não foi avaliado como - Avalie este tópico

IntPtr Estrutura

Um tipo específico de plataforma que é usado para representar um ponteiro ou um identificador.

Namespace:  System
Assembly:  mscorlib (em mscorlib. dll)
[SerializableAttribute]
[ComVisibleAttribute(true)]
public struct IntPtr : ISerializable

The IntPtr type is designed to be an integer whose size is platform-specific.Isto é, uma instância deste tipo é esperada 32-bits no hardware de 32 bits e em sistemas operacionais e 64 bits em hardware de 64 bits e sistemas operacionais.

The IntPtr type can be used by languages that support pointers, and as a common means of referring to data between languages that do and do not support pointers.

IntPtr objects can also be used to hold handles.For example, instances of IntPtr are used extensively in the System.IO.FileStream class to hold file handles.

The IntPtr type is CLS-compliant, while the UIntPtr type is not.Only the IntPtr type is used in the common language runtime.The UIntPtr type is provided mostly to maintain architectural symmetry with the IntPtr type.

This type implements the ISerializable interface.

Esse tipo é de Thread de segurança.

Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.