Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / UidPropertyAttribute.cs / 1 / UidPropertyAttribute.cs
//---------------------------------------------------------------------------- // // File: UidPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the x:Uid attribute from the XML markup file. // // Example: // [UidProperty("Uid")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Uid" property with the value "efe1". // // // 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 UidPropertyAttribute : Attribute { ////// Creates a new UidPropertyAttribute with the given string /// as the property name. /// public UidPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the x:Uid value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the x:Uid value private string _name = null; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: UidPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the x:Uid attribute from the XML markup file. // // Example: // [UidProperty("Uid")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Uid" property with the value "efe1". // // // 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 UidPropertyAttribute : Attribute { ////// Creates a new UidPropertyAttribute with the given string /// as the property name. /// public UidPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the x:Uid value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the x:Uid 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
- ListViewGroupConverter.cs
- ChannelDispatcher.cs
- DurableEnlistmentState.cs
- Padding.cs
- CompiledQuery.cs
- Int64.cs
- AdornerHitTestResult.cs
- SelectionChangedEventArgs.cs
- RuntimeWrappedException.cs
- ParameterCollection.cs
- TextSpanModifier.cs
- DynamicDocumentPaginator.cs
- SynchronousSendBindingElement.cs
- BooleanFunctions.cs
- LocalizableResourceBuilder.cs
- DesignerValidatorAdapter.cs
- OdbcTransaction.cs
- Translator.cs
- SessionStateModule.cs
- DynamicRenderer.cs
- RegexStringValidatorAttribute.cs
- DesignerActionPropertyItem.cs
- SystemException.cs
- Trace.cs
- BoundsDrawingContextWalker.cs
- LightweightCodeGenerator.cs
- SoapException.cs
- Nullable.cs
- ZeroOpNode.cs
- SQLBytes.cs
- ToolStripGripRenderEventArgs.cs
- TextTreeRootNode.cs
- SecurityException.cs
- EntityClassGenerator.cs
- CommentAction.cs
- MethodExpression.cs
- WebPartCatalogAddVerb.cs
- ContainsRowNumberChecker.cs
- MinMaxParagraphWidth.cs
- MultipleViewProviderWrapper.cs
- CollectionViewGroup.cs
- CompilerScopeManager.cs
- SerializerDescriptor.cs
- FieldCollectionEditor.cs
- CodeTypeConstructor.cs
- Bitmap.cs
- TrackingProfileDeserializationException.cs
- WorkflowOwnershipException.cs
- PropertyPushdownHelper.cs
- DataConnectionHelper.cs
- Query.cs
- Deflater.cs
- Serializer.cs
- ForeignKeyConstraint.cs
- TrackingExtract.cs
- UrlPropertyAttribute.cs
- KeyValueConfigurationCollection.cs
- DataGridSortCommandEventArgs.cs
- PasswordTextNavigator.cs
- JavaScriptObjectDeserializer.cs
- UnsafeNativeMethods.cs
- UserControl.cs
- ObjectDataSourceEventArgs.cs
- XmlWrappingWriter.cs
- SQLInt16.cs
- AssertFilter.cs
- InternalConfigConfigurationFactory.cs
- AttributeProviderAttribute.cs
- TextBox.cs
- InfoCardArgumentException.cs
- ManagementNamedValueCollection.cs
- EventWaitHandle.cs
- ISSmlParser.cs
- CodeCastExpression.cs
- infer.cs
- Nullable.cs
- SmiMetaData.cs
- QuaternionAnimation.cs
- ProjectionAnalyzer.cs
- DataSourceViewSchemaConverter.cs
- SafeUserTokenHandle.cs
- TypeNameParser.cs
- ExtensionFile.cs
- DataGridTablesFactory.cs
- CompilationLock.cs
- SoapHeader.cs
- EntityDataSourceSelectedEventArgs.cs
- WebBrowserBase.cs
- SmiEventSink_DeferedProcessing.cs
- graph.cs
- ExclusiveTcpListener.cs
- ScaleTransform3D.cs
- SqlHelper.cs
- TemplatePropertyEntry.cs
- ValidationHelpers.cs
- PinnedBufferMemoryStream.cs
- XslTransform.cs
- PolicyException.cs
- SiteMapDataSource.cs
- WebPartCatalogAddVerb.cs