Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / FullTrustAssemblyCollection.cs / 1305376 / FullTrustAssemblyCollection.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.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [ConfigurationCollection(typeof(String))] public sealed class FullTrustAssemblyCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static FullTrustAssemblyCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public FullTrustAssembly this[int index] { get { return (FullTrustAssembly)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Add(FullTrustAssembly fullTrustAssembly) { BaseAdd(fullTrustAssembly); } public void Remove(String key) { BaseRemove(key); } public void RemoveAt(int index) { BaseRemoveAt(index); } protected override ConfigurationElement CreateNewElement() { return new FullTrustAssembly(); } public void Clear() { BaseClear(); } protected override Object GetElementKey(ConfigurationElement element) { return ((FullTrustAssembly)element).AssemblyName + ((FullTrustAssembly)element).Version; } internal bool IsRemoved(string key) { return BaseIsRemoved(key); } } } // 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.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [ConfigurationCollection(typeof(String))] public sealed class FullTrustAssemblyCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static FullTrustAssemblyCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public FullTrustAssembly this[int index] { get { return (FullTrustAssembly)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public void Add(FullTrustAssembly fullTrustAssembly) { BaseAdd(fullTrustAssembly); } public void Remove(String key) { BaseRemove(key); } public void RemoveAt(int index) { BaseRemoveAt(index); } protected override ConfigurationElement CreateNewElement() { return new FullTrustAssembly(); } public void Clear() { BaseClear(); } protected override Object GetElementKey(ConfigurationElement element) { return ((FullTrustAssembly)element).AssemblyName + ((FullTrustAssembly)element).Version; } internal bool IsRemoved(string key) { return BaseIsRemoved(key); } } } // 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
- CodeCompiler.cs
- RegularExpressionValidator.cs
- SurrogateSelector.cs
- DataTableMappingCollection.cs
- AuthenticationService.cs
- XmlHierarchicalEnumerable.cs
- PerformanceCountersElement.cs
- DynamicQueryStringParameter.cs
- AliasedExpr.cs
- XmlSchemaDatatype.cs
- HttpModulesInstallComponent.cs
- SqlParameterizer.cs
- SemanticResultValue.cs
- SettingsAttributes.cs
- AuthenticationService.cs
- XhtmlBasicFormAdapter.cs
- PropertyStore.cs
- QueryTreeBuilder.cs
- DbDataAdapter.cs
- DiagnosticsElement.cs
- DesignerSerializerAttribute.cs
- Symbol.cs
- MetadataItemSerializer.cs
- SqlCaseSimplifier.cs
- HtmlTableCell.cs
- MetabaseSettingsIis7.cs
- PaintEvent.cs
- IUnknownConstantAttribute.cs
- TransactionScope.cs
- UnsafeNetInfoNativeMethods.cs
- PingReply.cs
- IntMinMaxAggregationOperator.cs
- DataGridViewCell.cs
- EventsTab.cs
- ObjectDataSourceMethodEventArgs.cs
- DiscoveryClientOutputChannel.cs
- XPathDocumentBuilder.cs
- FixedPageStructure.cs
- SmtpFailedRecipientsException.cs
- CodeSnippetTypeMember.cs
- UserNameSecurityTokenAuthenticator.cs
- TextHidden.cs
- Vector3DAnimationUsingKeyFrames.cs
- ByteAnimationBase.cs
- BeginEvent.cs
- FlowLayoutPanelDesigner.cs
- ComponentConverter.cs
- HtmlImage.cs
- HttpProfileBase.cs
- HttpClientChannel.cs
- Knowncolors.cs
- GroupDescription.cs
- HtmlTable.cs
- EntityModelBuildProvider.cs
- Control.cs
- ASCIIEncoding.cs
- TcpHostedTransportConfiguration.cs
- PlatformCulture.cs
- SQLDateTimeStorage.cs
- ReadOnlyDataSourceView.cs
- DashStyle.cs
- Vector3DAnimation.cs
- PathSegmentCollection.cs
- RayMeshGeometry3DHitTestResult.cs
- UpDownEvent.cs
- TraceInternal.cs
- ItemsControl.cs
- ProxyGenerationError.cs
- EventSourceCreationData.cs
- ObjectListDesigner.cs
- HtmlTernaryTree.cs
- OpCodes.cs
- ItemList.cs
- RequestFactory.cs
- ProviderSettings.cs
- DependencyObject.cs
- SoapSchemaMember.cs
- Shape.cs
- TableCellsCollectionEditor.cs
- GraphicsPath.cs
- EditCommandColumn.cs
- TextBoxBase.cs
- ComplexBindingPropertiesAttribute.cs
- XmlQueryRuntime.cs
- SqlCaseSimplifier.cs
- SystemBrushes.cs
- FrugalList.cs
- WorkflowIdleElement.cs
- DbMetaDataColumnNames.cs
- StreamWriter.cs
- WinEventTracker.cs
- JsonDeserializer.cs
- SqlInfoMessageEvent.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- EventLogPermissionEntry.cs
- Facet.cs
- WebHttpBehavior.cs
- PersistChildrenAttribute.cs
- FormsAuthenticationCredentials.cs
- GridViewCellAutomationPeer.cs