将事件记录档从指定的电脑移除。
定义事件记录档的预设存取权限。
将当地语系化的项目写入事件记录档。
包含特定事件记录档的状态码或错误码。
Contains the status code or error code for a specific event log.
将当地语系化的事件项目写入事件记录档。
不过,单一事件记录档可以被多个不同的来源写入。
However, a single event log can have many different sources writing to it.
这个时间可能和将事件资讯写入至事件记录档的时间不同。
This might not be the same as the time when the event information was written to the event log.
当事件记录档已满时,它会停止记录新的事件资讯或开始覆写较早的项目。
When an event log is full, it stops recording new event information or begins to overwrite earlier entries.
例如,您的应用程序可能需要多个已设定不同事件记录档或不同资源档的来源。
For example, your application might require multiple sources configured for different event logs or different resource files.
您必须在记录档所在处的电脑上有管理员使用权限,才能够清除事件记录档项目。
You must have administrator permissions to the computer on which the log resides to clear event log entries.
将具有指定讯息文字的错误、警告、资讯、成功稽核或失败稽核项目写入事件记录档。
Writes an information type entry with the given message text to the event log, using the specified registered event source.
这个物件包含已发行至事件记录档的事件,或包含事件订阅失败时所发生的例外状况。
This object contains the event that was published to the event log or the exception that occurred when the event subscription failed.
有这项需求是因为必须搜寻所有事件记录档(包括安全性),以判断事件来源是否为唯一。
To search for an event source in Windows Vista and later or Windows Server 2003, you must have administrative privileges.
事件记录档的前8 个字元必须不同于指定电脑上现有事件记录档名称的前 8 个字元。
The first 8 characters of the event log name must be different from the first 8 characters of existing names of event logs on the specified computer.
每一个来源一次只能写入至一个事件记录档,但是,应用程序可以使用多个来源来写入多个事件记录档。
Each source can only write to one event log at a time; however, your application can use multiple sources to write to multiple event logs.
当您建立新来源(一次只能写入一个记录档)时,系统会将您的应用程序(有事件记录档)登录为有效的项目来源。
When you create a new source, which can only write to one log at a time, the system registers your application with the event log as a valid source of entries.
使用指定的登录事件来源,将有指定讯息文字、应用程序定义的事件识别项和应用程序定义的分类的项目写入事件记录档。
Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, using the specified registered event source.
将有指定讯息文字、应用程序定义的事件识别项和应用程序定义的分类的项目写入事件记录档(使用指定的登录事件来源),并将二进位资料附加到讯息。
Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, and appends binary data to the message.
如果事件记录停止,您可以用这个方法清除现存项目的记录档,使它能够再开始记录事件。
If event recording stops, you can use this method to clear the log of existing entries and allow it to start recording events again.
例如,您可以建立事件处理常式,将所有错误输出行存入指定的错误记录档。
For example, you might create an event handler that stores all error output lines into a designated error log file.
这些属性包含记录档中的事件数目、记录档大小、判断记录档是否已满的值,以及上次写入或存取记录档的时间。
These properties include the number of events in the log, the size of the log, a value that determines whether the log is full, and the last time the log was written to or accessed.
这些属性包含记录档中的事件数目、记录档大小、判断记录档是否已满的值,以及上次写入或存取记录档的时间。
These properties include the number of events in the log, the size of the log, a value that determines whether the log is full, and the last time the log was written to or accessed.
应用推荐