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
- BCLDebug.cs
- Visual3D.cs
- XmlTextReader.cs
- GeneralTransform.cs
- DrawingAttributesDefaultValueFactory.cs
- UriTemplateLiteralPathSegment.cs
- XmlSchemaGroupRef.cs
- Point3D.cs
- BitmapEffectGroup.cs
- OperandQuery.cs
- querybuilder.cs
- CustomAssemblyResolver.cs
- TemplateField.cs
- ForceCopyBuildProvider.cs
- RegisteredHiddenField.cs
- SelectiveScrollingGrid.cs
- TrackingCondition.cs
- TemplatedMailWebEventProvider.cs
- ReadOnlyState.cs
- SchemaCollectionCompiler.cs
- WindowsTreeView.cs
- Typeface.cs
- SharedConnectionWorkflowTransactionService.cs
- AutoScrollHelper.cs
- RelationshipEndMember.cs
- SubMenuStyleCollection.cs
- WebPartZoneBase.cs
- RoutedEventConverter.cs
- ToggleButtonAutomationPeer.cs
- ImageSourceValueSerializer.cs
- ContextStack.cs
- InternalTransaction.cs
- WindowHideOrCloseTracker.cs
- IncrementalCompileAnalyzer.cs
- TagMapInfo.cs
- SettingsAttributes.cs
- CompileLiteralTextParser.cs
- StructuralCache.cs
- DataBindEngine.cs
- WebConfigurationFileMap.cs
- DelayedRegex.cs
- ElementProxy.cs
- Line.cs
- PrintPageEvent.cs
- ExtendedTransformFactory.cs
- NativeMethods.cs
- TableSectionStyle.cs
- StringFreezingAttribute.cs
- TagMapInfo.cs
- ReadingWritingEntityEventArgs.cs
- ObjectDisposedException.cs
- NativeMethodsOther.cs
- WinFormsSpinner.cs
- ContainerSelectorBehavior.cs
- LinqDataSourceContextData.cs
- ISAPIRuntime.cs
- LowerCaseStringConverter.cs
- CodeTypeConstructor.cs
- XmlSchemaChoice.cs
- TemplateXamlTreeBuilder.cs
- ToolStripItemCollection.cs
- CultureInfo.cs
- JoinQueryOperator.cs
- WebPartConnectionsConnectVerb.cs
- PngBitmapDecoder.cs
- SimpleFieldTemplateFactory.cs
- TextLine.cs
- Debug.cs
- CatalogZoneBase.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MetadataUtilsSmi.cs
- CollectionBase.cs
- QilPatternVisitor.cs
- SqlTypeSystemProvider.cs
- AutomationPatternInfo.cs
- BrowserInteropHelper.cs
- AppDomain.cs
- ControlAdapter.cs
- HttpProfileGroupBase.cs
- PropVariant.cs
- WebSysDefaultValueAttribute.cs
- prompt.cs
- InvalidOleVariantTypeException.cs
- LookupTables.cs
- HostProtectionPermission.cs
- PropertyConverter.cs
- IResourceProvider.cs
- XsltOutput.cs
- DataControlLinkButton.cs
- ConsumerConnectionPoint.cs
- CompileLiteralTextParser.cs
- RepeatInfo.cs
- SystemResources.cs
- IntellisenseTextBox.cs
- WindowInteractionStateTracker.cs
- Int32.cs
- Stacktrace.cs
- XPathSingletonIterator.cs
- CompilationPass2Task.cs
- PagesChangedEventArgs.cs