SqlBinary.Length Propriedade

Definição

Obtém o tamanho em bytes da propriedade Value.Gets the length in bytes of the Value property. Esta propriedade é somente para leitura.This property is read-only.

public:
 property int Length { int get(); };
public int Length { get; }
member this.Length : int
Public ReadOnly Property Length As Integer

Valor da propriedade

Int32

O comprimento dos dados binários na Value propriedade.The length of the binary data in the Value property.

Exceções

A propriedade Length é lida quando a propriedade Value contém Null.The Length property is read when the Value property contains Null.

Comentários

Para evitar a geração de um SqlNullValueException , sempre examine a IsNull propriedade antes de ler a Length propriedade.To avoid raising a SqlNullValueException, always examine the IsNull property before reading the Length property.

Aplica-se a