/// <summary> /// Gets the file extension for this MimeType instance. /// </summary> /// <returns>File extension (string) if found/available, else null</returns> public string GetFileExtension() { if (msType == null || msType.Length == 0) { return(null); } return(WindowsRegistry.GetMimeTypeOption(ContentType, "Extension")); }
/// <summary> /// Gets the CLSID for this MimeType instance. /// </summary> /// <returns>CLSID (string), or null</returns> public string GetCLSID() { if (msType == null || msType.Length == 0) { return(null); } return(WindowsRegistry.GetMimeTypeOption(ContentType, "CLSID")); }