SqlBinary.Length Propriedade
Definição
public:
property int Length { int get(); };
public int Length { get; }
member this.Length : int
Public ReadOnly Property Length As Integer
Valor da propriedade
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.