프로퍼티 | 타입 | 설명 | |
---|---|---|---|
m_out |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ConvertByteToChar | char | ||
Dispose | void | ||
GetLogText | string | ||
InitializeTextWriter | void | ||
Logger | System | ||
WriteEventInternal | void |
메소드 | 설명 | |
---|---|---|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
Clone ( IStream &ppstm ) : void |
Creates a new stream object with its own seek pointer that references the same bytes as the original stream.
|
|
Commit ( int grfCommitFlags ) : void |
Ensures that any changes made to a stream object that is open in transacted mode are reflected in the parent storage.
|
|
CopyTo ( IStream pstm, long cb, |
Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Must not be virtual. |
|
Init ( string projectName ) : void |
Creates the logger. The logging functions can't be used until this method is called.
|
|
LockRegion ( long libOffset, long cb, int dwLockType ) : void |
Restricts access to a specified range of bytes in the stream.
|
|
Read ( byte pv, int cb, |
Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.
|
|
Revert ( ) : void |
Discards all changes that have been made to a transacted stream since the last M:System.Runtime.InteropServices.ComTypes.IStream.Commit(System.Int32) call.
|
|
Seek ( long dlibMove, int dwOrigin, |
Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.
|
|
SetSize ( long libNewSize ) : void |
Changes the size of the stream object.
|
|
ShutDown ( ) : void |
Shut down the logger. The logging functions can't be used after this method is called.
|
|
Stat ( System &pstatstg, int grfStatFlag ) : void |
Retrieves the
|
|
UnlockRegion ( long libOffset, long cb, int dwLockType ) : void |
Removes the access restriction on a range of bytes previously restricted with the
|
|
Write ( byte pv, int cb, |
Writes a specified number of bytes into the stream object starting at the current seek pointer.
|
|
WriteError ( |
Writes an exception and its stack trace to the log. This method will do nothing if Init() is not called first.
|
|
WriteError ( string msg, |
Writes msg and an exception and its stack trace to the log. This method will do nothing if Init() is not called first.
|
|
WriteEvent ( string message ) : void |
Writes an event to the logger. This method will do nothing if Init() is not called first.
|
메소드 | 설명 | |
---|---|---|
ConvertByteToChar ( byte b ) : char |
Converts the byte to char.
|
|
Dispose ( bool disposing ) : void | ||
GetLogText ( ) : string |
Gets the log text.
|
|
InitializeTextWriter ( ) : void |
Initializes (or reinitializes) the text writer.
|
|
Logger ( string logPrefix ) : System |
Initializes a new instance of the Logger class.
|
|
WriteEventInternal ( string message ) : void |
Writes the event to the logger.
|
public Clone ( IStream &ppstm ) : void | ||
ppstm | IStream | When this method returns, contains the new stream object. /// This parameter is passed uninitialized. |
리턴 | void |
public Commit ( int grfCommitFlags ) : void | ||
grfCommitFlags | int | A value that controls how the changes for the stream /// object are committed. |
리턴 | void |
public CopyTo ( IStream pstm, long cb, |
||
pstm | IStream | A reference to the destination stream. |
cb | long | The number of bytes to copy from the source stream. |
pcbRead | On successful return, contains the actual number of bytes /// read from the source. | |
pcbWritten | On successful return, contains the actual number of bytes /// written to the destination. | |
리턴 | void |
public static Init ( string projectName ) : void | ||
projectName | string | Name of the project that can be used (and certainly will /// be) to generate a unique log file name. |
리턴 | void |
public LockRegion ( long libOffset, long cb, int dwLockType ) : void | ||
libOffset | long | The byte offset for the beginning of the range. |
cb | long | The length of the range, in bytes, to restrict. |
dwLockType | int | The requested restrictions on accessing the range. |
리턴 | void |
public Read ( byte pv, int cb, |
||
pv | byte | When this method returns, contains the data read from the stream. /// This parameter is passed uninitialized. |
cb | int | The number of bytes to read from the stream object. |
pcbRead | A pointer to a ULONG variable that receives the actual number /// of bytes read from the stream object. | |
리턴 | void |
public Seek ( long dlibMove, int dwOrigin, |
||
dlibMove | long | The displacement to add to dwOrigin. |
dwOrigin | int | The origin of the seek. The origin can be the beginning of /// the file, the current seek pointer, or the end of the file. |
plibNewPosition | On successful return, contains the offset of the seek /// pointer from the beginning of the stream. | |
리턴 | void |
public SetSize ( long libNewSize ) : void | ||
libNewSize | long | The new size of the stream as a number of bytes. |
리턴 | void |
public Stat ( System &pstatstg, int grfStatFlag ) : void | ||
pstatstg | System | When this method returns, contains a STATSTG structure that /// describes this stream object. This parameter is passed uninitialized. |
grfStatFlag | int | Members in the STATSTG structure that this method does not /// return, thus saving some memory allocation operations. |
리턴 | void |
public UnlockRegion ( long libOffset, long cb, int dwLockType ) : void | ||
libOffset | long | The byte offset for the beginning of the range. |
cb | long | The length, in bytes, of the range to restrict. |
dwLockType | int | The access restrictions previously placed on the range. |
리턴 | void |
public Write ( byte pv, int cb, |
||
pv | byte | The buffer to write this stream to. |
cb | int | The number of bytes to write to the stream. |
pcbWritten | On successful return, contains the actual number of bytes /// written to the stream object. If the caller sets this pointer to null, this method /// does not provide the actual number of bytes written. | |
리턴 | void |
public static WriteError ( string msg, |
||
msg | string | |
e | ||
리턴 | void |