Share via


SqlHierarchyId.Write Method

Writes a SqlHierarchyId to a specified binary writer.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Sub Write ( _
    w As BinaryWriter _
)
'Usage
Dim instance As SqlHierarchyId
Dim w As BinaryWriter

instance.Write(w)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public void Write(
    BinaryWriter w
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
virtual void Write(
    BinaryWriter^ w
) sealed
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
abstract Write : 
        w:BinaryWriter -> unit 
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
override Write : 
        w:BinaryWriter -> unit 
public final function Write(
    w : BinaryWriter
)

Parameters

Implements

IBinarySerialize.Write(BinaryWriter)

Remarks

Throws an exception if w is nulla null reference (Nothing in Visual Basic).

Throws an exception if the SqlHierarchyId is nulla null reference (Nothing in Visual Basic).

This member is sealed.

See Also

Reference

SqlHierarchyId Structure

Microsoft.SqlServer.Types Namespace