Compartilhar via


Factors Affecting Property Value Representation in the Table and View Classes

There are a couple of factors that affect the type and format of a property in a Table and in a View. String properties are affected by the store provider, and binary, date, and multi-valued properties are affected by the way the property is referenced when it is first added to a Table, an OrderFields collection, or a ViewFields collection, or specified as a StartField or EndField in a CalendarView or TimelineView.

Propriedades da cadeia de caracteres afetadas por provedores de repositório

The length of the value of a string property depends on the store provider. For Exchange and OST/PST stores, the length of the string value will not exceed 255 bytes. This means that string values longer than 255 bytes will be truncated at the first 255 characters.

Por exemplo, se você usar Columns.Add para adicionar a propriedade PR_INTERNET_TRANSPORT_HEADERS (referenciada pelo namespace como https://schemas.microsoft.com/mapi/proptag/0x007d001e) a uma Tabela, a Tabela armazenará apenas os primeiros 255 caracteres do conteúdo completo da propriedade. If you need to determine the full content of the property, you must use the corresponding item's Entry ID in NameSpace.GetItemFromID to obtain a full item. Once you have the item, you can use the PropertyAccessor to obtain the complete property value.

Propriedades binárias, de data e de valores múltiplos afetadas pela referência à propriedade

The type and format of a binary, date, or multi-valued property are affected by how the property is referenced when it is first added to a Table or as a field to a View. Is the property referenced by its explicit built-in name (if it has one), or is it referenced by namespace (regardless of the existence of an explicit built-in name)? The following table summarizes the difference in the property value representation (in terms of type and format) per original property type:

Tipo de propriedade Tipo/Formato Armazenado Tipo/Formato Armazenado
(se a propriedade adicionada fazendo referência a um nome interno explícito) (se a propriedade adicionada fazendo referência a um namespace)
Binária String Matriz de bytes
Data Hora local UTC
Multivalizedos Cadeia de caracteres contendo valores separados por vírgula Matriz unidimensional contendo um elemento para cada palavra-chave

Nota Para obter mais informações sobre como referenciar propriedades por namespace, consulte Referenciando Propriedades por Namespace.

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.