Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SplineKeyFrames.cs
- HierarchicalDataBoundControlAdapter.cs
- DoubleLinkList.cs
- ToolStripRenderEventArgs.cs
- InternalBufferManager.cs
- FlatButtonAppearance.cs
- XmlSchemaExporter.cs
- ToolStripSplitStackLayout.cs
- AuthenticationManager.cs
- CodeBinaryOperatorExpression.cs
- DBCommandBuilder.cs
- Calendar.cs
- ScopelessEnumAttribute.cs
- AuthenticodeSignatureInformation.cs
- Double.cs
- IssuanceLicense.cs
- BooleanFacetDescriptionElement.cs
- Activity.cs
- AspNetHostingPermission.cs
- EventlogProvider.cs
- BinHexEncoding.cs
- OleDbException.cs
- Viewport2DVisual3D.cs
- ObjectListFieldCollection.cs
- MachineKeyConverter.cs
- TreeViewAutomationPeer.cs
- RedirectionProxy.cs
- AppSettingsExpressionBuilder.cs
- Classification.cs
- ReadOnlyDataSource.cs
- RegionIterator.cs
- LayoutManager.cs
- ObfuscateAssemblyAttribute.cs
- VirtualPathProvider.cs
- SqlCachedBuffer.cs
- XmlUtf8RawTextWriter.cs
- IUnknownConstantAttribute.cs
- WebPartConnectionsCloseVerb.cs
- TdsParser.cs
- Hashtable.cs
- RowUpdatingEventArgs.cs
- DateTimeParse.cs
- EditorPartChrome.cs
- SoapTypeAttribute.cs
- Int32Converter.cs
- CompModSwitches.cs
- ContextMarshalException.cs
- BuildProvider.cs
- Comparer.cs
- RowSpanVector.cs
- IdentityNotMappedException.cs
- ExpressionBindings.cs
- AdapterDictionary.cs
- DocumentPageViewAutomationPeer.cs
- PagesSection.cs
- ExecutionContext.cs
- EntitySqlException.cs
- WCFModelStrings.Designer.cs
- FilterableAttribute.cs
- IPEndPointCollection.cs
- DetailsViewInsertEventArgs.cs
- WebPartExportVerb.cs
- LongCountAggregationOperator.cs
- _IPv6Address.cs
- Property.cs
- XmlElementList.cs
- Aggregates.cs
- SourceElementsCollection.cs
- LoginName.cs
- DataError.cs
- DataTransferEventArgs.cs
- InfoCardMetadataExchangeClient.cs
- CircleHotSpot.cs
- EventWaitHandle.cs
- TextServicesHost.cs
- ObjectListField.cs
- RegionIterator.cs
- DocumentReferenceCollection.cs
- WebPartTracker.cs
- ComponentConverter.cs
- Int32Animation.cs
- ListBindableAttribute.cs
- ResourceDisplayNameAttribute.cs
- MultiBinding.cs
- SafeViewOfFileHandle.cs
- Color.cs
- SafeFileHandle.cs
- Site.cs
- ProtocolViolationException.cs
- ResourceManager.cs
- WebService.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StorageComplexPropertyMapping.cs
- BrushValueSerializer.cs
- SymmetricAlgorithm.cs
- TextDecorationUnitValidation.cs
- GridViewRowPresenter.cs
- DbException.cs
- ToolStripItemImageRenderEventArgs.cs
- GorillaCodec.cs