Sdílet prostřednictvím


ContextNode.LoadPropertiesData Method

Recreates the application-specific and internal property data for an array of bytes that was previously created with SavePropertiesData.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Function LoadPropertiesData ( _
    propertiesData As Byte() _
) As Boolean
'Usage
Dim instance As ContextNode 
Dim propertiesData As Byte()
Dim returnValue As Boolean 

returnValue = instance.LoadPropertiesData(propertiesData)
public bool LoadPropertiesData(
    byte[] propertiesData
)
public:
bool LoadPropertiesData(
    array<unsigned char>^ propertiesData
)
public function LoadPropertiesData(
    propertiesData : byte[]
) : boolean

Parameters

  • propertiesData
    Type: array<System.Byte[]

    An array of bytes that is used to recreate application-specific and internal property data.

Return Value

Type: System.Boolean
true if the data is loaded successfully; otherwise, false.

Remarks

In cases of corrupt input, this method throws a ArgumentException exception.

Examples

This example loads the properties data from a byte array, data, into a ContextNode object, inkWord. If it does not load successfully, a message is displayed.

If (Not inkWord.LoadPropertiesData(data)) Then
    MessageBox.Show("Cannot load property data")
End If
if (!inkWord.LoadPropertiesData(data))
    MessageBox.Show("Cannot load property data");

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNode Class

ContextNode Members

Microsoft.Ink Namespace

ContextNode.AddPropertyData

ContextNode.ContainsPropertyData

ContextNode.GetPropertyData

ContextNode.RemovePropertyData

ContextNode.SavePropertiesData