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
- HTMLTextWriter.cs
- XmlAnyElementAttribute.cs
- MarkerProperties.cs
- EpmCustomContentDeSerializer.cs
- Serializer.cs
- ExtentKey.cs
- XmlAtomicValue.cs
- MembershipUser.cs
- TextSearch.cs
- Image.cs
- MsmqReceiveHelper.cs
- TreeViewCancelEvent.cs
- Int32Rect.cs
- PeerToPeerException.cs
- IApplicationTrustManager.cs
- ZipIOBlockManager.cs
- NonBatchDirectoryCompiler.cs
- ConfigurationStrings.cs
- CompositeFontFamily.cs
- Automation.cs
- Point3DCollectionConverter.cs
- NativeRightsManagementAPIsStructures.cs
- HtmlInputText.cs
- DPAPIProtectedConfigurationProvider.cs
- SHA384.cs
- COSERVERINFO.cs
- GeometryGroup.cs
- DataService.cs
- IgnoreSection.cs
- ConfigXmlWhitespace.cs
- PolygonHotSpot.cs
- DataBoundControlAdapter.cs
- XMLSyntaxException.cs
- PasswordDeriveBytes.cs
- LinqDataSource.cs
- NativeMethods.cs
- SqlCommandAsyncResult.cs
- SpeechSeg.cs
- BaseValidator.cs
- OptionalColumn.cs
- SchemaCollectionCompiler.cs
- CodeAttachEventStatement.cs
- ExpressionPrefixAttribute.cs
- FuncCompletionCallbackWrapper.cs
- Socket.cs
- TripleDESCryptoServiceProvider.cs
- HierarchicalDataSourceIDConverter.cs
- cache.cs
- StorageMappingItemLoader.cs
- DataServiceClientException.cs
- StaticDataManager.cs
- PermissionAttributes.cs
- StrokeNodeData.cs
- BaseConfigurationRecord.cs
- DataColumnMapping.cs
- DiagnosticEventProvider.cs
- UpdateProgress.cs
- DrawingBrush.cs
- iisPickupDirectory.cs
- BaseEntityWrapper.cs
- CalendarButtonAutomationPeer.cs
- PropertyOrder.cs
- Matrix3D.cs
- FlowLayoutPanel.cs
- XmlSchemaInferenceException.cs
- MulticastNotSupportedException.cs
- ChannelCacheSettings.cs
- TimeSpanOrInfiniteConverter.cs
- RectAnimationUsingKeyFrames.cs
- TextBoxRenderer.cs
- BooleanSwitch.cs
- DesignerAttribute.cs
- FixedSOMTableCell.cs
- GPRECT.cs
- EventProvider.cs
- XmlTextAttribute.cs
- DocumentStatusResources.cs
- BaseValidatorDesigner.cs
- TransformValueSerializer.cs
- _ServiceNameStore.cs
- SessionKeyExpiredException.cs
- ObjectSet.cs
- XmlChildNodes.cs
- Gdiplus.cs
- MetadataItem.cs
- MissingManifestResourceException.cs
- KnownTypes.cs
- EnumMember.cs
- ChoiceConverter.cs
- _NestedMultipleAsyncResult.cs
- Size.cs
- CommandValueSerializer.cs
- InstancePersistenceCommandException.cs
- MulticastDelegate.cs
- XmlSchemaSimpleType.cs
- List.cs
- MediaPlayerState.cs
- ScrollContentPresenter.cs
- SizeValueSerializer.cs
- ImportContext.cs