ResourceTypeDetectorTryDetectResource Method
Tries to analyze an input stream and creates one of supportable HTML resources from it, taking into account a specified assumptive type, if it is not null

Namespace: GroupDocs.Editor.HtmlCss.Resources
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version:
public static IHtmlResource TryDetectResource(
	Stream inputResourceStream,
	string name,
	IResourceType assumptiveFormat


Type: System.IOStream
Input stream, which presumably contains an HTML resource. If invalid, an exception will be thrown.
Type: SystemString
Resource name, which will be used for created and returned resource on success. Cannot be NULL, empty or whitespace
Type: GroupDocs.Editor.HtmlCss.ResourcesIResourceType
Assumed format of the input HTML resource, which is useful for achieving the best performance. If completely unknown, use the NULL value. May be incorrect, this will only worsen the performance.

Return Value

Type: IHtmlResource
Instance, which implements 'IHtmlResource' interface and represents one of supportable HTML resources on success, or NULL on failure
See Also