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
- CheckableControlBaseAdapter.cs
- ServicePoint.cs
- ThaiBuddhistCalendar.cs
- Literal.cs
- ExpressionEditorAttribute.cs
- XmlFormatReaderGenerator.cs
- ClaimTypes.cs
- HttpListenerException.cs
- HMACRIPEMD160.cs
- ContextStack.cs
- TracedNativeMethods.cs
- ToolStripSettings.cs
- DocumentGridContextMenu.cs
- FlowDocumentPaginator.cs
- BaseTemplateParser.cs
- Viewport3DAutomationPeer.cs
- CodeTypeMember.cs
- SoapWriter.cs
- PartialCachingControl.cs
- recordstatescratchpad.cs
- AuthenticationSection.cs
- Documentation.cs
- LocatorPart.cs
- ContentOperations.cs
- DocumentPageTextView.cs
- RegexStringValidatorAttribute.cs
- FreezableCollection.cs
- GlobalId.cs
- MetadataArtifactLoaderCompositeFile.cs
- OdbcConnectionOpen.cs
- EmptyImpersonationContext.cs
- Decorator.cs
- PerformanceCounterLib.cs
- NativeMethods.cs
- DataTable.cs
- WebZone.cs
- ToolStripItemClickedEventArgs.cs
- CurrentChangingEventManager.cs
- AppearanceEditorPart.cs
- ItemChangedEventArgs.cs
- Ref.cs
- RequestQueue.cs
- NullableIntMinMaxAggregationOperator.cs
- DataGridViewComboBoxCell.cs
- SqlWebEventProvider.cs
- MemberHolder.cs
- NoneExcludedImageIndexConverter.cs
- FactoryGenerator.cs
- SvcMapFileSerializer.cs
- ColorInterpolationModeValidation.cs
- GestureRecognizer.cs
- KeyValuePairs.cs
- ProxyGenerator.cs
- StyleModeStack.cs
- XmlElementList.cs
- Parameter.cs
- CharAnimationBase.cs
- SubqueryRules.cs
- TdsParameterSetter.cs
- TextBoxBase.cs
- HttpPostedFileBase.cs
- Proxy.cs
- HttpHandlersSection.cs
- IncrementalReadDecoders.cs
- ValidatorCompatibilityHelper.cs
- UnsupportedPolicyOptionsException.cs
- RepeaterItem.cs
- WebBrowser.cs
- ArcSegment.cs
- StylusPointPropertyId.cs
- Msec.cs
- TcpClientChannel.cs
- CodeLinePragma.cs
- EnvelopedSignatureTransform.cs
- PlacementWorkspace.cs
- BezierSegment.cs
- MenuAutomationPeer.cs
- ArgumentOutOfRangeException.cs
- ResXResourceWriter.cs
- KeyedHashAlgorithm.cs
- SqlNode.cs
- WebPartsSection.cs
- AnnotationMap.cs
- QilBinary.cs
- TextParaLineResult.cs
- SignerInfo.cs
- StorageScalarPropertyMapping.cs
- HttpVersion.cs
- FrameworkContextData.cs
- Selector.cs
- TrackBar.cs
- DragStartedEventArgs.cs
- OSFeature.cs
- ExpressionList.cs
- RowTypePropertyElement.cs
- AspNetHostingPermission.cs
- coordinatorfactory.cs
- SqlResolver.cs
- PaintEvent.cs
- DbConnectionOptions.cs