Partager via


ImagingUtilities.ConvertMonikerToString Method

Definition

Overloads

ConvertMonikerToString(ImageMoniker)

Converts an ImageMoniker into a string, which can be converted back using TryParseImageMoniker.

ConvertMonikerToString(ImageMoniker, String)

Converts an ImageMoniker into a string, using the passed format, which can be converted back using TryParseImageMoniker.

ConvertMonikerToString(ImageMoniker)

Converts an ImageMoniker into a string, which can be converted back using TryParseImageMoniker.

public:
 static System::String ^ ConvertMonikerToString(Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker);
 static std::wstring ConvertMonikerToString(Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker);
public static string ConvertMonikerToString (Microsoft.VisualStudio.Imaging.Interop.ImageMoniker moniker);
static member ConvertMonikerToString : Microsoft.VisualStudio.Imaging.Interop.ImageMoniker -> string
Public Shared Function ConvertMonikerToString (moniker As ImageMoniker) As String

Parameters

moniker
ImageMoniker

ImageMoniker to convert to a string.

Returns

The ImageMoniker formatted as a string.

Applies to

ConvertMonikerToString(ImageMoniker, String)

Converts an ImageMoniker into a string, using the passed format, which can be converted back using TryParseImageMoniker.

public:
 static System::String ^ ConvertMonikerToString(Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker, System::String ^ format);
 static std::wstring ConvertMonikerToString(Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker, std::wstring const & format);
public static string ConvertMonikerToString (Microsoft.VisualStudio.Imaging.Interop.ImageMoniker moniker, string format);
static member ConvertMonikerToString : Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * string -> string
Public Shared Function ConvertMonikerToString (moniker As ImageMoniker, format As String) As String

Parameters

moniker
ImageMoniker

ImageMoniker to convert to a string.

format
String

Format to use. "f" for filename, "a" for alternate, "g" for general

Returns

The ImageMoniker formatted as a string.

Applies to