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
- SafeTimerHandle.cs
- ThreadPool.cs
- _BufferOffsetSize.cs
- SelectionRange.cs
- ProcessModule.cs
- AuthorizationRuleCollection.cs
- SmtpLoginAuthenticationModule.cs
- ShapeTypeface.cs
- RequestCacheValidator.cs
- HandlerWithFactory.cs
- RoamingStoreFile.cs
- XPathNodeIterator.cs
- UserPreferenceChangedEventArgs.cs
- OracleConnection.cs
- TextParagraph.cs
- QuotaThrottle.cs
- SoapSchemaExporter.cs
- XamlPoint3DCollectionSerializer.cs
- InputBinding.cs
- UIntPtr.cs
- UInt32.cs
- xml.cs
- KnownBoxes.cs
- AuthenticationModuleElement.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SqlCacheDependency.cs
- MouseOverProperty.cs
- BinarySecretSecurityToken.cs
- NameValueFileSectionHandler.cs
- IISMapPath.cs
- DataObjectCopyingEventArgs.cs
- OutputCacheSettings.cs
- EditingCommands.cs
- CancellationScope.cs
- LineUtil.cs
- PathGeometry.cs
- ProfilePropertySettingsCollection.cs
- BinaryObjectReader.cs
- DefaultPropertyAttribute.cs
- TimeSpanStorage.cs
- DrawingGroupDrawingContext.cs
- FieldReference.cs
- ReadOnlyObservableCollection.cs
- RemotingException.cs
- ResourceDictionaryCollection.cs
- DbSetClause.cs
- GridItemPatternIdentifiers.cs
- ImagingCache.cs
- MsmqDecodeHelper.cs
- COSERVERINFO.cs
- SafeNativeMethods.cs
- StaticSiteMapProvider.cs
- HtmlTextViewAdapter.cs
- WindowsMenu.cs
- ProgressBar.cs
- PropertyTabAttribute.cs
- SecurityProtocolFactory.cs
- StatusBarItem.cs
- ObjectDataSourceView.cs
- RuntimeCompatibilityAttribute.cs
- DataControlReference.cs
- DBConnectionString.cs
- SimpleMailWebEventProvider.cs
- DataGridTableCollection.cs
- NameValueSectionHandler.cs
- WindowHideOrCloseTracker.cs
- DependencyPropertyAttribute.cs
- BCLDebug.cs
- SignatureHelper.cs
- BindingExpressionBase.cs
- ConfigurationSectionGroup.cs
- AdornedElementPlaceholder.cs
- JpegBitmapEncoder.cs
- ClientTargetSection.cs
- DecoderReplacementFallback.cs
- ParameterCollection.cs
- HtmlSelect.cs
- XmlCDATASection.cs
- StreamResourceInfo.cs
- AuthorizationPolicyTypeElement.cs
- Camera.cs
- SigningCredentials.cs
- SafeNativeMethods.cs
- XPathNavigatorKeyComparer.cs
- PlanCompilerUtil.cs
- Int32EqualityComparer.cs
- GroupDescription.cs
- DataSourceCache.cs
- HiddenField.cs
- EditorAttribute.cs
- WebPartsSection.cs
- LicenseManager.cs
- UnionExpr.cs
- IQueryable.cs
- securestring.cs
- PixelFormat.cs
- SatelliteContractVersionAttribute.cs
- TreeNodeStyleCollection.cs
- SqlBuilder.cs
- FlowDocumentReader.cs