Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / PartialTrustVisibleAssembly.cs / 1305376 / PartialTrustVisibleAssembly.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; public sealed class PartialTrustVisibleAssembly : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propAssemblyName = new ConfigurationProperty("assemblyName", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propPublicKey = new ConfigurationProperty("publicKey", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); static PartialTrustVisibleAssembly() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propAssemblyName); _properties.Add(_propPublicKey); } internal PartialTrustVisibleAssembly() { } public PartialTrustVisibleAssembly(string assemblyName, string publicKey) { AssemblyName = assemblyName; PublicKey = publicKey; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("assemblyName", IsRequired = true, IsKey = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string AssemblyName { get { return (string)base[_propAssemblyName]; } set { base[_propAssemblyName] = value; } } [ConfigurationProperty("publicKey", IsRequired = true, IsKey = false, DefaultValue = "")] [StringValidator(MinLength = 1)] public string PublicKey { get { return (string)base[_propPublicKey]; } set { base[_propPublicKey] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; public sealed class PartialTrustVisibleAssembly : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propAssemblyName = new ConfigurationProperty("assemblyName", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propPublicKey = new ConfigurationProperty("publicKey", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); static PartialTrustVisibleAssembly() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propAssemblyName); _properties.Add(_propPublicKey); } internal PartialTrustVisibleAssembly() { } public PartialTrustVisibleAssembly(string assemblyName, string publicKey) { AssemblyName = assemblyName; PublicKey = publicKey; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("assemblyName", IsRequired = true, IsKey = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string AssemblyName { get { return (string)base[_propAssemblyName]; } set { base[_propAssemblyName] = value; } } [ConfigurationProperty("publicKey", IsRequired = true, IsKey = false, DefaultValue = "")] [StringValidator(MinLength = 1)] public string PublicKey { get { return (string)base[_propPublicKey]; } set { base[_propPublicKey] = value; } } } } // 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
- DrawingCollection.cs
- ReturnType.cs
- RawStylusInput.cs
- CodeTypeConstructor.cs
- LayoutEvent.cs
- KeyPullup.cs
- ControlPaint.cs
- ZipPackage.cs
- BitmapEncoder.cs
- SafeThemeHandle.cs
- HierarchicalDataSourceIDConverter.cs
- RemoteCryptoRsaServiceProvider.cs
- GetCertificateRequest.cs
- SqlFlattener.cs
- PreviewPageInfo.cs
- DataTableClearEvent.cs
- TypeDescriptor.cs
- ZoneLinkButton.cs
- relpropertyhelper.cs
- UnSafeCharBuffer.cs
- UriTemplateTrieLocation.cs
- SmtpDigestAuthenticationModule.cs
- CodeCatchClause.cs
- ViewStateException.cs
- SessionPageStateSection.cs
- MessageHeader.cs
- __ComObject.cs
- KnownTypes.cs
- ParentControlDesigner.cs
- AuthenticateEventArgs.cs
- AssemblyCollection.cs
- FilterException.cs
- SelectionEditor.cs
- XmlAttributeProperties.cs
- EntityDataSourceChangingEventArgs.cs
- StopStoryboard.cs
- nulltextcontainer.cs
- TextBoxAutomationPeer.cs
- ServiceModelConfiguration.cs
- GridViewEditEventArgs.cs
- BlobPersonalizationState.cs
- InternalDispatchObject.cs
- TrustLevel.cs
- WriteTimeStream.cs
- TextAutomationPeer.cs
- DateTimeSerializationSection.cs
- EditingCoordinator.cs
- PluralizationServiceUtil.cs
- coordinatorscratchpad.cs
- MD5.cs
- DesignerCategoryAttribute.cs
- ComplexLine.cs
- IntegerValidatorAttribute.cs
- WinFormsSpinner.cs
- MtomMessageEncodingBindingElement.cs
- safesecurityhelperavalon.cs
- SystemInformation.cs
- MediaPlayerState.cs
- DataRelation.cs
- NegotiateStream.cs
- Utilities.cs
- InputLanguageSource.cs
- WindowsTokenRoleProvider.cs
- ScrollItemPattern.cs
- MissingMemberException.cs
- BamlLocalizableResource.cs
- SqlSupersetValidator.cs
- _Events.cs
- ArrayElementGridEntry.cs
- InstanceNotFoundException.cs
- HideDisabledControlAdapter.cs
- SByteConverter.cs
- COM2IDispatchConverter.cs
- ParagraphResult.cs
- CodeDirectiveCollection.cs
- ObjectPersistData.cs
- SafeProcessHandle.cs
- ToolStripTextBox.cs
- PerfCounters.cs
- WebPartEditorApplyVerb.cs
- TextServicesCompartmentEventSink.cs
- WebControlToolBoxItem.cs
- TextRangeSerialization.cs
- UnhandledExceptionEventArgs.cs
- FlowDocumentView.cs
- VoiceObjectToken.cs
- ClientRuntimeConfig.cs
- UnsignedPublishLicense.cs
- IndexedEnumerable.cs
- ControlValuePropertyAttribute.cs
- Context.cs
- SQLDecimal.cs
- DbSource.cs
- XsltCompileContext.cs
- TableLayoutPanelDesigner.cs
- HandlerFactoryWrapper.cs
- LogicalExpr.cs
- DataGridViewCellStateChangedEventArgs.cs
- LongValidatorAttribute.cs
- MouseActionConverter.cs