private static string GetMonikerString(IMoniker moniker) { // Declare variables string result = ""; // Get the display name of the moniker moniker.GetDisplayName(null, null, out result); // Return result return result; }