ImagingUtilities.ConvertMonikerToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.