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
- SettingsBase.cs
- ReceiveReply.cs
- NullableBoolConverter.cs
- EmptyQuery.cs
- DbProviderFactoriesConfigurationHandler.cs
- IIS7ConfigurationLoader.cs
- Header.cs
- SQLRoleProvider.cs
- SchemaNames.cs
- DataTableClearEvent.cs
- DataGridItemCollection.cs
- StaticSiteMapProvider.cs
- Condition.cs
- SecurityKeyIdentifierClause.cs
- TypeSchema.cs
- Debug.cs
- TemplatePropertyEntry.cs
- MexHttpsBindingCollectionElement.cs
- TypeDescriptionProvider.cs
- DrawListViewItemEventArgs.cs
- BaseTemplateParser.cs
- PartialCachingControl.cs
- OperatingSystem.cs
- MethodAccessException.cs
- XmlMembersMapping.cs
- UriSectionData.cs
- SourceSwitch.cs
- MediaContext.cs
- CompositeScriptReference.cs
- ContentPropertyAttribute.cs
- CroppedBitmap.cs
- VectorAnimation.cs
- CryptoConfig.cs
- ValueTable.cs
- ToolBarButtonClickEvent.cs
- CaseInsensitiveComparer.cs
- TableAdapterManagerHelper.cs
- ZoneIdentityPermission.cs
- Int64Animation.cs
- ToolStripScrollButton.cs
- TextDecorationUnitValidation.cs
- MeshGeometry3D.cs
- FilteredReadOnlyMetadataCollection.cs
- PathSegmentCollection.cs
- SimpleRecyclingCache.cs
- SerialPort.cs
- AppManager.cs
- PerformanceCountersElement.cs
- Command.cs
- AuthenticationModuleElementCollection.cs
- _NtlmClient.cs
- SystemIcmpV6Statistics.cs
- CodeStatementCollection.cs
- GridViewDeleteEventArgs.cs
- SchemaEntity.cs
- ExpandedWrapper.cs
- OptimalBreakSession.cs
- AutomationPatternInfo.cs
- WebScriptEnablingElement.cs
- DetailsViewAutoFormat.cs
- NullableDoubleSumAggregationOperator.cs
- Environment.cs
- ProgressBarRenderer.cs
- AdapterUtil.cs
- CollectionView.cs
- WindowInteropHelper.cs
- NameValuePair.cs
- CopyAttributesAction.cs
- PresentationSource.cs
- UserCancellationException.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SslStream.cs
- ResourceWriter.cs
- ColorTransformHelper.cs
- GAC.cs
- MonthCalendarDesigner.cs
- PageThemeBuildProvider.cs
- ProgressBarAutomationPeer.cs
- ServiceBehaviorElement.cs
- Error.cs
- EventLogException.cs
- AuthStoreRoleProvider.cs
- CodeAttributeDeclarationCollection.cs
- FontStretches.cs
- CreateParams.cs
- BufferedGraphicsManager.cs
- SmiConnection.cs
- SolidBrush.cs
- FormViewRow.cs
- NetworkInformationPermission.cs
- TextServicesHost.cs
- XmlSignificantWhitespace.cs
- RNGCryptoServiceProvider.cs
- DateTime.cs
- InheritanceContextHelper.cs
- AutomationProperties.cs
- DocumentAutomationPeer.cs
- BindingExpressionBase.cs
- FrugalMap.cs
- WebConfigurationHost.cs