Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / DefaultSerializationProviderAttribute.cs / 1305376 / DefaultSerializationProviderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System.Security.Permissions; ////// The default serialization provider attribute is placed on a serializer /// to indicate the class to use as a default provider of that type of /// serializer. To be a default serialization provider, a class must /// implement IDesignerSerilaizationProvider and have an empty /// constructor. The class itself can be internal to the assembly. /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] public sealed class DefaultSerializationProviderAttribute : Attribute { private string _providerTypeName; ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(Type providerType) { if (providerType == null) { throw new ArgumentNullException("providerType"); } _providerTypeName = providerType.AssemblyQualifiedName; } ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(string providerTypeName) { if (providerTypeName == null) { throw new ArgumentNullException("providerTypeName"); } _providerTypeName = providerTypeName; } ////// Returns the type name for the default serialization provider. /// public string ProviderTypeName { get { return _providerTypeName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationSection.cs
- DataRowComparer.cs
- NamespaceEmitter.cs
- EventLogPermissionEntry.cs
- DataGridViewCellParsingEventArgs.cs
- CheckoutException.cs
- Drawing.cs
- SemanticResultKey.cs
- DecoderNLS.cs
- RegisteredDisposeScript.cs
- OutputCacheSection.cs
- CodeValidator.cs
- SQLInt16.cs
- DesignerCategoryAttribute.cs
- TextTabProperties.cs
- RandomNumberGenerator.cs
- Automation.cs
- DesignerDataTable.cs
- QilLiteral.cs
- Dump.cs
- ObjectHandle.cs
- HandlerFactoryWrapper.cs
- StringDictionary.cs
- ThreadInterruptedException.cs
- TextTrailingWordEllipsis.cs
- SimpleNameService.cs
- DesignerWithHeader.cs
- CustomCategoryAttribute.cs
- TextBoxAutomationPeer.cs
- InstanceKey.cs
- CheckBoxAutomationPeer.cs
- PropertyGridView.cs
- TextAction.cs
- ConfigXmlSignificantWhitespace.cs
- GenericWebPart.cs
- CodeTypeParameter.cs
- AutomationProperties.cs
- KeyNotFoundException.cs
- MemoryFailPoint.cs
- TextChange.cs
- KeyEvent.cs
- ISFClipboardData.cs
- SqlGatherConsumedAliases.cs
- BamlResourceSerializer.cs
- Vars.cs
- SqlBooleanMismatchVisitor.cs
- Clipboard.cs
- TimerElapsedEvenArgs.cs
- DataObjectSettingDataEventArgs.cs
- ConfigXmlElement.cs
- WindowsTreeView.cs
- DataTableReaderListener.cs
- WebConfigurationManager.cs
- ValueTable.cs
- ReaderWriterLockSlim.cs
- GlobalProxySelection.cs
- SecureConversationVersion.cs
- MenuItemBindingCollection.cs
- ReferencedType.cs
- ValueSerializer.cs
- ContentValidator.cs
- XmlSerializableWriter.cs
- AtlasWeb.Designer.cs
- RepeatButtonAutomationPeer.cs
- TimeSpanOrInfiniteConverter.cs
- Style.cs
- Matrix3DStack.cs
- PackagingUtilities.cs
- WebContext.cs
- UniqueConstraint.cs
- ModulesEntry.cs
- ConversionContext.cs
- WebResourceAttribute.cs
- ClientScriptManagerWrapper.cs
- KeyPressEvent.cs
- DbExpressionBuilder.cs
- ProviderSettingsCollection.cs
- TableCellCollection.cs
- LinkArea.cs
- CodeCatchClause.cs
- BounceEase.cs
- ResourceDescriptionAttribute.cs
- PersonalizableTypeEntry.cs
- DataGridItemAutomationPeer.cs
- StreamGeometry.cs
- AesManaged.cs
- DataListItemCollection.cs
- ThicknessKeyFrameCollection.cs
- XpsPackagingException.cs
- LinkDescriptor.cs
- Thumb.cs
- XmlSerializationWriter.cs
- SourceFileInfo.cs
- MobileUserControlDesigner.cs
- TemplateInstanceAttribute.cs
- CounterSample.cs
- PaginationProgressEventArgs.cs
- PieceNameHelper.cs
- ZoneMembershipCondition.cs
- XmlLoader.cs