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
- DocumentGrid.cs
- FileLevelControlBuilderAttribute.cs
- xsdvalidator.cs
- BamlRecordWriter.cs
- PackagePartCollection.cs
- CharUnicodeInfo.cs
- TreeNodeEventArgs.cs
- localization.cs
- Rotation3DAnimation.cs
- ApplicationDirectory.cs
- DesignerSerializationOptionsAttribute.cs
- Utils.cs
- HttpRequest.cs
- HandlerWithFactory.cs
- ClockGroup.cs
- AudioException.cs
- DataKeyCollection.cs
- DeploymentSectionCache.cs
- DynamicUpdateCommand.cs
- PersistenceProviderFactory.cs
- SQLRoleProvider.cs
- WebPartConnectionsCloseVerb.cs
- SafeRightsManagementEnvironmentHandle.cs
- StaticSiteMapProvider.cs
- ConfigurationStrings.cs
- Point3DCollection.cs
- LingerOption.cs
- ComponentResourceKeyConverter.cs
- DataServiceQueryException.cs
- NavigationPropertyEmitter.cs
- ModuleConfigurationInfo.cs
- FormParameter.cs
- SystemIPInterfaceProperties.cs
- TemplateBindingExtension.cs
- InputMethodStateChangeEventArgs.cs
- WsdlWriter.cs
- RSAPKCS1SignatureFormatter.cs
- DeviceContext.cs
- MemberPath.cs
- WsiProfilesElementCollection.cs
- ProfileSettings.cs
- TemplateBindingExpressionConverter.cs
- CorrelationExtension.cs
- TreeNodeStyleCollection.cs
- TabControlCancelEvent.cs
- GridSplitterAutomationPeer.cs
- XmlSchemaComplexContent.cs
- IntSumAggregationOperator.cs
- BitmapCodecInfo.cs
- altserialization.cs
- SettingsPropertyCollection.cs
- AcceleratedTokenAuthenticator.cs
- SystemFonts.cs
- WebUtil.cs
- RequiredAttributeAttribute.cs
- ParserExtension.cs
- PropertyNames.cs
- DataFieldConverter.cs
- Point.cs
- LogExtentCollection.cs
- FormClosingEvent.cs
- DynamicObject.cs
- IFlowDocumentViewer.cs
- SubstitutionResponseElement.cs
- HttpDebugHandler.cs
- TransformGroup.cs
- WebPartEditVerb.cs
- StdValidatorsAndConverters.cs
- StringResourceManager.cs
- RawMouseInputReport.cs
- IISMapPath.cs
- EventMappingSettings.cs
- TagNameToTypeMapper.cs
- _TLSstream.cs
- ModelItemCollectionImpl.cs
- PeerNameRecord.cs
- columnmapkeybuilder.cs
- EventProviderBase.cs
- BitmapPalettes.cs
- FormsAuthenticationEventArgs.cs
- WebPartExportVerb.cs
- DmlSqlGenerator.cs
- Evidence.cs
- ComEventsMethod.cs
- MutexSecurity.cs
- WinCategoryAttribute.cs
- FixedSOMPage.cs
- ScriptRegistrationManager.cs
- PngBitmapEncoder.cs
- XmlBinaryReader.cs
- EnumMember.cs
- ExpressionBinding.cs
- CryptoProvider.cs
- Suspend.cs
- CodeParameterDeclarationExpression.cs
- SafeMILHandle.cs
- AssemblyGen.cs
- EncryptedKey.cs
- VScrollProperties.cs
- TextDecorationLocationValidation.cs