Topic Transformation ExtensionsGenerate Unique Id Method
This is used to generate a unique ID for an XML node
Definition
Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
This is loosely based on the generate-id() XSLT function implementation in the .NET Framework
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static string GenerateUniqueId(
this XNode node
)VB
<ExtensionAttribute>
Public Shared Function GenerateUniqueId (
node As XNode
) As StringC++
public:
[ExtensionAttribute]
static String^ GenerateUniqueId(
XNode^ node
)F#
[<ExtensionAttribute>]
static member GenerateUniqueId :
node : XNode -> string Parameters
- node XNode
- The node for which to generate a unique ID
Return Value
StringThis is loosely based on the generate-id() XSLT function implementation in the .NET Framework