Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / AddIn / AddIn / System / Addin / AddInAttribute.cs / 1305376 / AddInAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Purpose: Attributes for the AddIn model ** ===========================================================*/ using System; using System.Diagnostics.Contracts; namespace System.AddIn { // Note that attributes for the other pipeline components // have been moved to Pipeline\AddInPipelineAttributes.cs [AttributeUsage(AttributeTargets.Class)] public sealed class AddInAttribute : Attribute { private String _name; private String _publisher; private String _version; private String _description; #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization private String _resMgrBaseName; private String _nameResource; private String _publisherResource; private String _descriptionResource; #endif public AddInAttribute(String name) { if (name == null) throw new ArgumentNullException("name"); if (name.Length <= 0) throw new ArgumentException(Res.AddInNameEmpty); System.Diagnostics.Contracts.Contract.EndContractBlock(); _name = name; } #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization public AddInAttribute(String resourceManagerBaseName, String addinNameResourceName) { if (resourceManagerBaseName == null) throw new ArgumentNullException("resourceManagerBaseName"); if (addinNameResourceName == null) throw new ArgumentNullException("addinNameResourceName"); System.Diagnostics.Contracts.Contract.EndContractBlock(); _resMgrBaseName = resourceManagerBaseName; _nameResource = addinNameResourceName; } #endif public String Name { get { return _name; } } public String Publisher { get { return _publisher; } set { _publisher = value; } } public String Version { get { return _version; } set { _version = value; } } public String Description { get { return _description; } set { _description = value; } } #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization public String ResourceManagerBaseName { get { return _resMgrBaseName; } } public String NameResourceName { get { return _nameResource; } } public String PublisherResourceName { get { return _publisherResource; } set { _publisherResource = value; } } public String DescriptionResourceName { get { return _descriptionResource; } set { _descriptionResource = value; } } #endif // LOCALIZABLE_ADDIN_ATTRIBUTE } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Purpose: Attributes for the AddIn model ** ===========================================================*/ using System; using System.Diagnostics.Contracts; namespace System.AddIn { // Note that attributes for the other pipeline components // have been moved to Pipeline\AddInPipelineAttributes.cs [AttributeUsage(AttributeTargets.Class)] public sealed class AddInAttribute : Attribute { private String _name; private String _publisher; private String _version; private String _description; #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization private String _resMgrBaseName; private String _nameResource; private String _publisherResource; private String _descriptionResource; #endif public AddInAttribute(String name) { if (name == null) throw new ArgumentNullException("name"); if (name.Length <= 0) throw new ArgumentException(Res.AddInNameEmpty); System.Diagnostics.Contracts.Contract.EndContractBlock(); _name = name; } #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization public AddInAttribute(String resourceManagerBaseName, String addinNameResourceName) { if (resourceManagerBaseName == null) throw new ArgumentNullException("resourceManagerBaseName"); if (addinNameResourceName == null) throw new ArgumentNullException("addinNameResourceName"); System.Diagnostics.Contracts.Contract.EndContractBlock(); _resMgrBaseName = resourceManagerBaseName; _nameResource = addinNameResourceName; } #endif public String Name { get { return _name; } } public String Publisher { get { return _publisher; } set { _publisher = value; } } public String Version { get { return _version; } set { _version = value; } } public String Description { get { return _description; } set { _description = value; } } #if LOCALIZABLE_ADDIN_ATTRIBUTE // For localization public String ResourceManagerBaseName { get { return _resMgrBaseName; } } public String NameResourceName { get { return _nameResource; } } public String PublisherResourceName { get { return _publisherResource; } set { _publisherResource = value; } } public String DescriptionResourceName { get { return _descriptionResource; } set { _descriptionResource = value; } } #endif // LOCALIZABLE_ADDIN_ATTRIBUTE } } // 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
- HttpCapabilitiesBase.cs
- StylusButtonCollection.cs
- RouteItem.cs
- RegistryPermission.cs
- BuildProviderAppliesToAttribute.cs
- GradientSpreadMethodValidation.cs
- Monitor.cs
- RemotingConfigParser.cs
- WindowsFormsHost.cs
- FormViewDeleteEventArgs.cs
- ProxyGenerator.cs
- FrugalList.cs
- AuthenticationService.cs
- ObjectResult.cs
- AnchoredBlock.cs
- LocatorPartList.cs
- DataControlCommands.cs
- MetaForeignKeyColumn.cs
- ActiveDesignSurfaceEvent.cs
- StrongNameMembershipCondition.cs
- TextTabProperties.cs
- Part.cs
- DictionaryEntry.cs
- ContentValidator.cs
- RecipientInfo.cs
- ClipboardData.cs
- WebPartCancelEventArgs.cs
- SelectionWordBreaker.cs
- NamedObject.cs
- FlatButtonAppearance.cs
- StopStoryboard.cs
- AccessDataSourceDesigner.cs
- NodeFunctions.cs
- RegexFCD.cs
- GenericWebPart.cs
- TrimSurroundingWhitespaceAttribute.cs
- DataServiceBuildProvider.cs
- ServiceBehaviorElementCollection.cs
- SqlConnectionFactory.cs
- StructuralObject.cs
- VisualBasic.cs
- OleDbStruct.cs
- PasswordBox.cs
- IdnMapping.cs
- IMembershipProvider.cs
- DelayedRegex.cs
- ListViewCancelEventArgs.cs
- ContainerSelectorBehavior.cs
- ProxySimple.cs
- TaskExtensions.cs
- PatternMatcher.cs
- ComAwareEventInfo.cs
- Color.cs
- SyndicationDeserializer.cs
- WebPartHeaderCloseVerb.cs
- HttpModuleCollection.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- TextRange.cs
- PasswordRecovery.cs
- FixedSOMPageConstructor.cs
- AndCondition.cs
- DataGridSortCommandEventArgs.cs
- HeaderedItemsControl.cs
- cookiecontainer.cs
- PolyQuadraticBezierSegment.cs
- Int32Collection.cs
- SecUtil.cs
- CultureInfoConverter.cs
- __TransparentProxy.cs
- TreeNodeClickEventArgs.cs
- ExpressionConverter.cs
- BooleanFunctions.cs
- CompilerScopeManager.cs
- WindowClosedEventArgs.cs
- ImmutableCollection.cs
- SafeEventLogWriteHandle.cs
- HttpResponseWrapper.cs
- WebPartDisplayModeCancelEventArgs.cs
- BindableTemplateBuilder.cs
- TreeNodeEventArgs.cs
- ScaleTransform3D.cs
- ProtectedConfigurationSection.cs
- DesignerAdapterAttribute.cs
- UntypedNullExpression.cs
- SoapTypeAttribute.cs
- HelpEvent.cs
- ComPlusDiagnosticTraceRecords.cs
- KeyPressEvent.cs
- DecimalStorage.cs
- InputProviderSite.cs
- StaticResourceExtension.cs
- TiffBitmapDecoder.cs
- PerCallInstanceContextProvider.cs
- TextBreakpoint.cs
- MeshGeometry3D.cs
- SrgsDocumentParser.cs
- DbgCompiler.cs
- SqlUserDefinedTypeAttribute.cs
- CommonGetThemePartSize.cs
- NumericUpDownAccelerationCollection.cs