Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ApplicationServices / KnownTypesProvider.cs / 1 / KnownTypesProvider.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; using System.Reflection; using System.Security.Permissions; using System.Web.Profile; namespace System.Web.ApplicationServices { [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public static class KnownTypesProvider { public static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) { if (ProfileBase.Properties == null) return new Type[0]; Type[] retArray = new Type[ProfileBase.Properties.Count]; int i = 0; foreach (SettingsProperty property in ProfileBase.Properties) { retArray[i++] = property.PropertyType; } return retArray; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; using System.Reflection; using System.Security.Permissions; using System.Web.Profile; namespace System.Web.ApplicationServices { [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public static class KnownTypesProvider { public static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) { if (ProfileBase.Properties == null) return new Type[0]; Type[] retArray = new Type[ProfileBase.Properties.Count]; int i = 0; foreach (SettingsProperty property in ProfileBase.Properties) { retArray[i++] = property.PropertyType; } return retArray; } } } // 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
- ListViewDataItem.cs
- nulltextcontainer.cs
- _BufferOffsetSize.cs
- TextAdaptor.cs
- ToolStripDropDownClosingEventArgs.cs
- HtmlTableRowCollection.cs
- Cursors.cs
- MediaContext.cs
- DockPattern.cs
- InternalCache.cs
- MatrixAnimationBase.cs
- WorkerProcess.cs
- DataRelationPropertyDescriptor.cs
- _CommandStream.cs
- DomainLiteralReader.cs
- SystemResourceHost.cs
- CustomErrorCollection.cs
- RecognizerInfo.cs
- TranslateTransform.cs
- SpotLight.cs
- DataGridTextBox.cs
- TypeSystem.cs
- GlyphElement.cs
- NullableFloatAverageAggregationOperator.cs
- ScriptControl.cs
- DesignerDataSchemaClass.cs
- TraceContextEventArgs.cs
- ConsumerConnectionPoint.cs
- DescendentsWalkerBase.cs
- VisualStyleRenderer.cs
- EventPrivateKey.cs
- DeclaredTypeElement.cs
- ISCIIEncoding.cs
- Guid.cs
- ToolStripSeparator.cs
- QueryResponse.cs
- ToolboxItemFilterAttribute.cs
- PrePrepareMethodAttribute.cs
- DocumentationServerProtocol.cs
- MergePropertyDescriptor.cs
- ITextView.cs
- FillRuleValidation.cs
- AppModelKnownContentFactory.cs
- EditorPartCollection.cs
- AutoResizedEvent.cs
- WebPartDescriptionCollection.cs
- UnmanagedMemoryStream.cs
- ListViewContainer.cs
- ScaleTransform3D.cs
- EntityModelBuildProvider.cs
- ProxyAttribute.cs
- DocumentSequenceHighlightLayer.cs
- CodeDelegateCreateExpression.cs
- TimeSpanMinutesConverter.cs
- Int64Storage.cs
- XmlSchemaComplexContentExtension.cs
- DataObjectPastingEventArgs.cs
- UdpAnnouncementEndpoint.cs
- RefType.cs
- EndpointAddressAugust2004.cs
- WebPartVerbCollection.cs
- ConfigurationSettings.cs
- RuntimeConfig.cs
- WebConfigurationManager.cs
- xml.cs
- UserControl.cs
- XmlToDatasetMap.cs
- IsolatedStorageFile.cs
- X509Certificate2.cs
- HostingEnvironmentWrapper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SelectionItemPattern.cs
- CompiledELinqQueryState.cs
- Walker.cs
- Collection.cs
- CompressedStack.cs
- OutputCacheModule.cs
- PropertyBuilder.cs
- RegexWorker.cs
- TypeConverterValueSerializer.cs
- DataGridViewDataErrorEventArgs.cs
- XmlElementAttributes.cs
- SubMenuStyle.cs
- SHA512Managed.cs
- MarginsConverter.cs
- TextProperties.cs
- CompilerState.cs
- FileDialogCustomPlaces.cs
- XPathMultyIterator.cs
- SendMailErrorEventArgs.cs
- Membership.cs
- Stack.cs
- FloaterBaseParagraph.cs
- ForeignConstraint.cs
- TextBoxAutoCompleteSourceConverter.cs
- OdbcConnection.cs
- OptionalMessageQuery.cs
- Thread.cs
- EngineSite.cs
- TextBox.cs