Aracılığıyla paylaş


Oku (Veritabanı Altyapısı)

Read reads binary representation of SqlHierarchyId from the passed-in BinaryReader and sets the SqlHierarchyId object to that value.Read cannot be called by using Transact-SQL.CAST kullanın veya bunun yerine CONVERT.

void Read( BinaryReader r ) 

Bağımsız değişkenler

  • r
    The BinaryReader object that produces a binary stream corresponding to a binary representation of a hierarchyid node.

Dönüş Türleri

**CLR dönüş türü:**void

Remarks

Read kendi giriş doğrulamaz.Geçersiz bir ikili verilir, giriş, Read bir özel durum yükseltmeniz. Veya başarısız ve geçersiz üretir. SqlHierarchyId Nesne, yöntem öngörülemeyen sonuçlar verin veya bir özel durum yükseltmek.

Read yalnızca adında, yeni oluşturulan SqlHierarchyId nesne.

Read is used internally by SQL Server when it is necessary, such as when writing data to hierarchyid column.Read is also called internally when a conversion is done between varbinary and hierarchyid.

Örnekler

Byte[] encoding = new byte[] { 0x58 };
MemoryStream stream = new MemoryStream(encoding, false /*not writable*/);
BinaryReader br = new BinaryReader(stream);
SqlHierarchyId hid = new SqlHierarchyId();
hid.Read(br);