'Declaration
<ComVisibleAttribute(False)> Public Overloads Shared Function GetDocumentFormat( _ ByVal Stream As Stream, _ ByVal FileName As String _ ) As DocumentFormat
[ComVisible(false)] public static DocumentFormat GetDocumentFormat( Stream Stream, string FileName )
public function GetDocumentFormat( Stream: Stream; FileName: String ): DocumentFormat; static;
ComVisibleAttribute() public static function GetDocumentFormat( Stream : Stream, FileName : String ) : DocumentFormat;
[ComVisible(false)] public: static DocumentFormat GetDocumentFormat( Stream* Stream, string* FileName )
[ComVisible(false)] public: static DocumentFormat GetDocumentFormat( Stream^ Stream, String^ FileName )
Parameters
- Stream
- A System.IO.Stream object. This stream object must be initialized before it can be sent into this method and it should remain open for subsequent use. At the same, the provided stream object must support seeking, otherwise the method will fail.
- FileName
- The name of the original file. This parameter can help the format detection algorithm to distinguish format using the same signature pattern.
Return Value
A member of the DocumentFormat enumeration. The format of the specified document.