Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / WmiPutTraceRecord.cs / 1 / WmiPutTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System; using System.Diagnostics; using System.Globalization; using System.ServiceModel.Channels; using System.ServiceModel.Diagnostics; using System.Text; using System.Xml; internal class WmiPutTraceRecord : TraceRecord { string originalValue; string newValue; string valueName; internal WmiPutTraceRecord(string valueName, object originalValue, object newValue) { DiagnosticUtility.DebugAssert(!String.IsNullOrEmpty(valueName), "valueName must be set"); this.valueName = valueName; this.originalValue = originalValue == null ? SR.GetString(SR.ConfigNull) : originalValue.ToString(); this.newValue = newValue == null ? SR.GetString(SR.ConfigNull) : newValue.ToString(); } internal override string EventId { get { return TraceRecord.EventIdBase + "WmiPut" + TraceRecord.NamespaceSuffix; } } internal override void WriteTo(XmlWriter xml) { xml.WriteElementString("ValueName", this.valueName); xml.WriteElementString("OriginalValue", this.originalValue); xml.WriteElementString("NewValue", this.newValue); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QilFactory.cs
- CommandLibraryHelper.cs
- Exception.cs
- CombinedHttpChannel.cs
- TextFragmentEngine.cs
- XmlAttributes.cs
- CodeTypeDeclaration.cs
- DeclarativeCatalogPart.cs
- OracleTimeSpan.cs
- DynamicRendererThreadManager.cs
- EnumBuilder.cs
- DesignerDataSourceView.cs
- System.Data_BID.cs
- ZipArchive.cs
- HostingEnvironmentException.cs
- DataServiceRequestOfT.cs
- CollectionConverter.cs
- sqlstateclientmanager.cs
- JournalEntry.cs
- RbTree.cs
- ConstNode.cs
- RegexRunnerFactory.cs
- Dispatcher.cs
- MustUnderstandBehavior.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- CompareValidator.cs
- EventRouteFactory.cs
- DebuggerService.cs
- RouteItem.cs
- GuidelineCollection.cs
- SamlAttribute.cs
- DataServiceRequestException.cs
- AuthStoreRoleProvider.cs
- SchemaTableOptionalColumn.cs
- baseshape.cs
- MarkupCompilePass2.cs
- ObjectDataSourceStatusEventArgs.cs
- DataTableReaderListener.cs
- WebConfigurationManager.cs
- BitmapEffectDrawingContextState.cs
- NavigationCommands.cs
- BindingContext.cs
- DesignerAdapterUtil.cs
- FormCollection.cs
- DesignerTransactionCloseEvent.cs
- DataGridViewLinkCell.cs
- PageCodeDomTreeGenerator.cs
- SectionXmlInfo.cs
- ObjectSpanRewriter.cs
- DetailsViewInsertEventArgs.cs
- _WinHttpWebProxyDataBuilder.cs
- GeneralTransform.cs
- PointCollection.cs
- DataServiceRequest.cs
- VariableDesigner.xaml.cs
- NativeWindow.cs
- SiteMapPathDesigner.cs
- TextDecoration.cs
- RegisteredArrayDeclaration.cs
- TypefaceCollection.cs
- ChangeToolStripParentVerb.cs
- UIElement3D.cs
- indexingfiltermarshaler.cs
- RuntimeUtils.cs
- HttpCookie.cs
- BamlRecords.cs
- LinkUtilities.cs
- JsonWriterDelegator.cs
- BigInt.cs
- EntityDescriptor.cs
- ContainerCodeDomSerializer.cs
- ControlPropertyNameConverter.cs
- WindowsIPAddress.cs
- Int32Storage.cs
- StyleSelector.cs
- IBuiltInEvidence.cs
- BeginEvent.cs
- LockedAssemblyCache.cs
- AsyncCompletedEventArgs.cs
- WindowsRebar.cs
- MarkupCompilePass2.cs
- CodeCompileUnit.cs
- AssociatedControlConverter.cs
- SeparatorAutomationPeer.cs
- HostExecutionContextManager.cs
- ControlCollection.cs
- XmlSchemaAnnotation.cs
- LinearGradientBrush.cs
- MenuItemAutomationPeer.cs
- WebPartDisplayModeCancelEventArgs.cs
- ContextStaticAttribute.cs
- ImpersonationContext.cs
- ReaderWriterLock.cs
- DocumentOrderComparer.cs
- SoapExtension.cs
- ListBoxChrome.cs
- StrokeCollection2.cs
- XmlSchemaRedefine.cs
- Annotation.cs
- UrlMappingsSection.cs