Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / XmlLangPropertyAttribute.cs / 1 / XmlLangPropertyAttribute.cs
//---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // 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
- ImageSourceValueSerializer.cs
- IncrementalHitTester.cs
- InternalTypeHelper.cs
- ProtectedConfigurationSection.cs
- EventBindingService.cs
- PowerModeChangedEventArgs.cs
- NumberFormatInfo.cs
- Trace.cs
- InternalEnumValidatorAttribute.cs
- UriSection.cs
- loginstatus.cs
- WebReferenceOptions.cs
- OptionUsage.cs
- RegexWriter.cs
- RsaEndpointIdentity.cs
- StylusButton.cs
- ipaddressinformationcollection.cs
- CopyNamespacesAction.cs
- MeshGeometry3D.cs
- TableLayoutCellPaintEventArgs.cs
- RoutedUICommand.cs
- Ticks.cs
- WebPartAuthorizationEventArgs.cs
- ActivatableWorkflowsQueryResult.cs
- _ListenerAsyncResult.cs
- XmlSerializerSection.cs
- DataGridViewImageCell.cs
- EditBehavior.cs
- CanonicalFontFamilyReference.cs
- StatusBar.cs
- UnknownBitmapDecoder.cs
- FormsAuthenticationEventArgs.cs
- ACE.cs
- GorillaCodec.cs
- SchemaTypeEmitter.cs
- InvalidEnumArgumentException.cs
- JpegBitmapEncoder.cs
- DataGridViewRowPostPaintEventArgs.cs
- SynchronousChannelMergeEnumerator.cs
- DeploymentSection.cs
- ErrorWrapper.cs
- ShutDownListener.cs
- GeometryModel3D.cs
- StringCollection.cs
- Debugger.cs
- XmlSigningNodeWriter.cs
- UInt16Storage.cs
- IPHostEntry.cs
- SqlInfoMessageEvent.cs
- WarningException.cs
- CompilerGlobalScopeAttribute.cs
- DataReceivedEventArgs.cs
- CrossAppDomainChannel.cs
- CounterCreationDataCollection.cs
- StrongNameIdentityPermission.cs
- PersianCalendar.cs
- EditorPartDesigner.cs
- XPathDocument.cs
- GiveFeedbackEventArgs.cs
- CallbackHandler.cs
- ControlPaint.cs
- DrawingContextWalker.cs
- Durable.cs
- ComplexTypeEmitter.cs
- XmlWhitespace.cs
- LinqToSqlWrapper.cs
- MasterPageParser.cs
- XmlMapping.cs
- PixelFormat.cs
- ExceptionUtil.cs
- DataBindingExpressionBuilder.cs
- FileInfo.cs
- RawAppCommandInputReport.cs
- WebControl.cs
- SapiRecoContext.cs
- PinProtectionHelper.cs
- KernelTypeValidation.cs
- IteratorFilter.cs
- DataGridViewHeaderCell.cs
- DataGridHeaderBorder.cs
- safemediahandle.cs
- InvalidAsynchronousStateException.cs
- DurableOperationAttribute.cs
- EndpointNameMessageFilter.cs
- InputManager.cs
- ObjectSecurity.cs
- Socket.cs
- ZoomPercentageConverter.cs
- DialogDivider.cs
- StandardToolWindows.cs
- BrushValueSerializer.cs
- _StreamFramer.cs
- ActiveXHost.cs
- NavigateEvent.cs
- ValidationRuleCollection.cs
- FixedSOMTableRow.cs
- TextBoxAutoCompleteSourceConverter.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- UshortList2.cs
- RotateTransform3D.cs