Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / DesignerSerializationOptionsAttribute.cs / 1 / DesignerSerializationOptionsAttribute.cs
//---------------------------------------------------------------------------- // // File: DesignerSerializationOptionsAttribute.cs // // Description: // Specifies the serialization flags per property // // Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Markup { ////// Specifies the serialization flags per property /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false)] public sealed class DesignerSerializationOptionsAttribute : Attribute { #region Construction ////// Constructor for DesignerSerializationOptionsAttribute /// public DesignerSerializationOptionsAttribute(DesignerSerializationOptions designerSerializationOptions) { if (DesignerSerializationOptions.SerializeAsAttribute == designerSerializationOptions) { _designerSerializationOptions = designerSerializationOptions; } else { throw new InvalidEnumArgumentException(SR.Get(SRID.Enum_Invalid, "DesignerSerializationOptions")); } } #endregion Construction #region Properties ////// DesignerSerializationOptions /// public DesignerSerializationOptions DesignerSerializationOptions { get { return _designerSerializationOptions; } } #endregion Properties #region Data DesignerSerializationOptions _designerSerializationOptions; #endregion Data } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: DesignerSerializationOptionsAttribute.cs // // Description: // Specifies the serialization flags per property // // Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Markup { ////// Specifies the serialization flags per property /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false)] public sealed class DesignerSerializationOptionsAttribute : Attribute { #region Construction ////// Constructor for DesignerSerializationOptionsAttribute /// public DesignerSerializationOptionsAttribute(DesignerSerializationOptions designerSerializationOptions) { if (DesignerSerializationOptions.SerializeAsAttribute == designerSerializationOptions) { _designerSerializationOptions = designerSerializationOptions; } else { throw new InvalidEnumArgumentException(SR.Get(SRID.Enum_Invalid, "DesignerSerializationOptions")); } } #endregion Construction #region Properties ////// DesignerSerializationOptions /// public DesignerSerializationOptions DesignerSerializationOptions { get { return _designerSerializationOptions; } } #endregion Properties #region Data DesignerSerializationOptions _designerSerializationOptions; #endregion Data } } // 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
- XmlBoundElement.cs
- ManagedWndProcTracker.cs
- NotSupportedException.cs
- SharedDp.cs
- BindingCompleteEventArgs.cs
- SqlNotificationRequest.cs
- IdnElement.cs
- ContextStack.cs
- IdentifierService.cs
- TypeSystemProvider.cs
- WebServiceTypeData.cs
- LogLogRecordEnumerator.cs
- Utils.cs
- WebPartAddingEventArgs.cs
- TextProperties.cs
- KnownBoxes.cs
- Partitioner.cs
- SizeValueSerializer.cs
- EntityViewGenerator.cs
- ToolStripKeyboardHandlingService.cs
- BadImageFormatException.cs
- CallbackValidator.cs
- ClientApiGenerator.cs
- MaskDesignerDialog.cs
- ProgressBarAutomationPeer.cs
- ChildTable.cs
- TextBoxBase.cs
- TableProviderWrapper.cs
- Utils.cs
- EventLogTraceListener.cs
- MediaContextNotificationWindow.cs
- AttributeUsageAttribute.cs
- XmlImplementation.cs
- HttpRequestWrapper.cs
- FieldDescriptor.cs
- RadioButtonList.cs
- HttpSocketManager.cs
- Msec.cs
- MLangCodePageEncoding.cs
- StringReader.cs
- UTF32Encoding.cs
- QuestionEventArgs.cs
- SecurityUniqueId.cs
- DependencyProperty.cs
- BamlRecordReader.cs
- BindingContext.cs
- ListViewDeletedEventArgs.cs
- PropertyConverter.cs
- ZoneButton.cs
- AffineTransform3D.cs
- MaterialGroup.cs
- MatrixAnimationBase.cs
- WindowsSecurityToken.cs
- IProvider.cs
- InvariantComparer.cs
- HttpDebugHandler.cs
- ContextMarshalException.cs
- SiteMapNodeItem.cs
- StoryFragments.cs
- WindowHideOrCloseTracker.cs
- UserControlAutomationPeer.cs
- TraceLevelStore.cs
- COM2ExtendedUITypeEditor.cs
- AggregateNode.cs
- SoapAttributeAttribute.cs
- SessionStateModule.cs
- ThrowHelper.cs
- Border.cs
- XmlSerializerSection.cs
- HttpInputStream.cs
- updateconfighost.cs
- Configuration.cs
- TextStore.cs
- StyleBamlRecordReader.cs
- InstanceKey.cs
- DataGridViewColumnTypeEditor.cs
- ContainerFilterService.cs
- CommandManager.cs
- ProfileModule.cs
- QuadraticBezierSegment.cs
- UnsafeNativeMethods.cs
- XmlSchemaGroupRef.cs
- IConvertible.cs
- EventArgs.cs
- NavigationPropertyEmitter.cs
- DefaultObjectMappingItemCollection.cs
- ListViewPagedDataSource.cs
- ImmComposition.cs
- XmlAttributes.cs
- PointLightBase.cs
- StrokeCollectionDefaultValueFactory.cs
- WebBrowserSiteBase.cs
- RadioButtonPopupAdapter.cs
- ManipulationDevice.cs
- ByteAnimationUsingKeyFrames.cs
- Section.cs
- RegexWriter.cs
- UnicastIPAddressInformationCollection.cs
- xmlfixedPageInfo.cs
- OpCodes.cs