다음을 통해 공유


NodeId.TryParse(String, NodeId) Method

Definition

Converts the string representation of a node ID to its NodeId object equivalent. A return value indicates whether the operation succeeded.

public static bool TryParse (string from, out System.Fabric.NodeId parsedNodeId);
static member TryParse : string * NodeId -> bool
Public Shared Function TryParse (from As String, ByRef parsedNodeId As NodeId) As Boolean

Parameters

from
String

A string containing the node ID to convert.

parsedNodeId
NodeId

When this method returns, contains a new NodeId object equivalent to the node ID contained in from, if the conversion succeeded, or null if the conversion failed. This parameter is passed uninitialized.

Returns

A boolean indicating if the parse was successful

Applies to