ContextNodeBase.GetPropertyData Method
Returns application-specific data that was added with the specified identifier.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Function GetPropertyData ( _
propertyDataId As Guid _
) As Object
'Usage
Dim instance As ContextNodeBase
Dim propertyDataId As Guid
Dim returnValue As Object
returnValue = instance.GetPropertyData(propertyDataId)
public Object GetPropertyData(
Guid propertyDataId
)
public:
Object^ GetPropertyData(
Guid propertyDataId
)
public function GetPropertyData(
propertyDataId : Guid
) : Object
Parameters
propertyDataId
Type: System.GuidThe identifier for the data.
Return Value
Type: System.Object
The application-specific data that was added with the specified identifier.
Remarks
In addition to application-specific data, you can also use this method to get internal data stored with the identifiers described by the PropertyGuidsForAnalysisHintsBase and PropertyGuidsForContextNodesBase classes.
Examples
This example looks for a property that was added with the Guid named timeStampGuid. It then puts the value into the Text property of a Label named timeStampLabel.
if (selectedNode.ContainsPropertyData(this.timeStampGuid))
{
DateTime timeStamp =
(DateTime)selectedNode.GetPropertyData(this.timeStampGuid);
timeStampLabel.Text = timeStamp.ToShortTimeString();
}
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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
System.Windows.Ink.AnalysisCore Namespace
System.Windows.Ink.AnalysisCore.PropertyGuidsForAnalysisHintsBase
System.Windows.Ink.AnalysisCore.PropertyGuidsForContextNodesBase
ContextNodeBase.AddPropertyData
ContextNodeBase.ContainsPropertyData
ContextNodeBase.RemovePropertyData