WpfDocumentPreviewer.StreamWrapper.Stat C# (CSharp) Method

Stat() public method

Returns details about the stream, including its length, type and name.
public Stat ( System &pstatstg, int grfStatFlag ) : void
pstatstg System
grfStatFlag int
return void
		public void Stat(out System.Runtime.InteropServices.ComTypes.STATSTG pstatstg, int grfStatFlag) {
			pstatstg = new System.Runtime.InteropServices.ComTypes.STATSTG();
			pstatstg.cbSize = mInner.Length;
			pstatstg.type = 2; // stream type
			pstatstg.pwcsName = (mInner is FileStream) ? ((FileStream)mInner).Name : String.Empty;
		}