Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AlternateView.cs
- TraceSection.cs
- ConstructorArgumentAttribute.cs
- ToolStripItemEventArgs.cs
- Attribute.cs
- ToolTip.cs
- BuildResultCache.cs
- NamespaceEmitter.cs
- EditableLabelControl.cs
- XmlSchemaComplexContentRestriction.cs
- UnitySerializationHolder.cs
- TrackingProfileSerializer.cs
- MemoryStream.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- FixedSOMPageConstructor.cs
- ECDiffieHellmanPublicKey.cs
- CodeMemberField.cs
- GridProviderWrapper.cs
- FrameworkTemplate.cs
- PageCatalogPart.cs
- UpdateException.cs
- HiddenFieldPageStatePersister.cs
- OneOfConst.cs
- Stylesheet.cs
- OrderByExpression.cs
- FixedTextContainer.cs
- BoundPropertyEntry.cs
- TypeSystem.cs
- PropertyRef.cs
- XmlWriterTraceListener.cs
- BaseCodeDomTreeGenerator.cs
- ModuleConfigurationInfo.cs
- XmlNode.cs
- TreeSet.cs
- SystemKeyConverter.cs
- CompositionCommandSet.cs
- HttpSocketManager.cs
- CollectionViewProxy.cs
- SHA384Managed.cs
- MultiPageTextView.cs
- SymDocumentType.cs
- AccessDataSourceDesigner.cs
- UInt32Converter.cs
- BeginEvent.cs
- ExpandedWrapper.cs
- LineBreak.cs
- ChangeInterceptorAttribute.cs
- FlagsAttribute.cs
- TextTreeTextBlock.cs
- ObjectHelper.cs
- DesignUtil.cs
- SerializationFieldInfo.cs
- CompiledScopeCriteria.cs
- Encoding.cs
- Utility.cs
- ResourceExpressionBuilder.cs
- PageThemeParser.cs
- WebPartDeleteVerb.cs
- Range.cs
- TraceHandler.cs
- SequentialOutput.cs
- RewritingValidator.cs
- CellParaClient.cs
- CompilerError.cs
- xml.cs
- EntityCollection.cs
- HttpModuleCollection.cs
- WebConfigurationHost.cs
- SerializationHelper.cs
- HMACSHA512.cs
- ClientBase.cs
- SmiRecordBuffer.cs
- AttributeProviderAttribute.cs
- AdornedElementPlaceholder.cs
- VisualStyleInformation.cs
- SelectionPattern.cs
- FileBasedResourceGroveler.cs
- TdsParserStateObject.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CodeCommentStatement.cs
- LayoutEvent.cs
- SpeechRecognitionEngine.cs
- OperationAbortedException.cs
- ModelTypeConverter.cs
- PathGeometry.cs
- Solver.cs
- XmlCharacterData.cs
- DragCompletedEventArgs.cs
- HttpHandlerActionCollection.cs
- WorkflowQueue.cs
- LoginName.cs
- StreamGeometry.cs
- DesignerDataConnection.cs
- AuthorizationBehavior.cs
- IntSecurity.cs
- Transform3DGroup.cs
- DependencyProperty.cs
- IdentifierService.cs
- AdapterDictionary.cs
- Privilege.cs