WpfDocumentPreviewer.StreamWrapper.Stat C# (CSharp) 메소드

Stat() 공개 메소드

Returns details about the stream, including its length, type and name.
public Stat ( System &pstatstg, int grfStatFlag ) : void
pstatstg System
grfStatFlag int
리턴 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;
		}