1 write to handle
System.Core (1)
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (1)
83
handle
= NativeWrapper.EvtOpenChannelConfig(this.session.Handle, this.channelName, 0);
34 references to handle
System.Core (34)
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (34)
94
return (EventLogType)((uint)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigType));
100
return (EventLogIsolation)((uint)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigIsolation));
106
return (bool)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled);
109
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled, (object)value);
115
return (bool)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigClassicEventlog);
121
return (string)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess);
124
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess, (object)value);
130
return (string)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath);
133
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath, (object)value);
139
return (long)((ulong)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize));
142
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize, (object)value);
148
object nativeRetentionObject = NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention);
149
object nativeAutoBackupObject = NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup);
166
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
167
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)false);
170
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)true);
171
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
174
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
175
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
183
return (string)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigOwningPublisher);
189
return (string[])NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublisherList);
195
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel));
198
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel, (object)value);
204
return (long?)((ulong?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords));
207
NativeWrapper.EvtSetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords, (object)value);
213
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigBufferSize));
219
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMinBuffers));
225
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMaxBuffers));
231
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLatency));
237
return (Guid?)(NativeWrapper.EvtGetChannelConfigProperty(this.
handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigControlGuid));
243
NativeWrapper.EvtSaveChannelConfig(this.
handle
, 0);
257
if (
handle
!= null && !
handle
.IsInvalid )
258
handle
.Dispose();