FromString.
null will be returned to indicate that the object was not found.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
FromString.
public static void Example(IDesignFace desFace) {
Document doc = desFace.Document;
// all doc objects provide a moniker
Moniker<IDesignFace> desFaceMonikerA = desFace.Moniker;
// resolve the moniker in the document to obtain the original object
Debug.Assert(desFaceMonikerA.Resolve(doc) == desFace);
// the string representation can be recorded
string monikerText = desFaceMonikerA.ToString();
// the moniker can be reconstructed from the string
Moniker<IDesignFace> desFaceMonikerB = Moniker<IDesignFace>.FromString(monikerText);
Debug.Assert(desFaceMonikerB.Resolve(doc) == desFace);
}
null will be returned to indicate that the object was not found.Was this page helpful?