Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ReadOnlyAttribute.cs
- MissingFieldException.cs
- HtmlInputRadioButton.cs
- InputLangChangeEvent.cs
- DrawingBrush.cs
- securestring.cs
- ShapingEngine.cs
- SpellerError.cs
- PerformanceCounterCategory.cs
- NavigationService.cs
- HttpBindingExtension.cs
- SecurityUtils.cs
- XmlArrayItemAttributes.cs
- dbdatarecord.cs
- SmiContext.cs
- OleDbDataReader.cs
- OdbcConnectionFactory.cs
- EditorZoneBase.cs
- InternalPermissions.cs
- DataControlImageButton.cs
- EventLogger.cs
- EditorZone.cs
- TreeNodeBindingCollection.cs
- ConnectionStringSettings.cs
- TextBoxDesigner.cs
- CatalogPart.cs
- TextViewElement.cs
- ReaderWriterLock.cs
- FilterableAttribute.cs
- DataGridRow.cs
- FormViewCommandEventArgs.cs
- shaperfactoryquerycachekey.cs
- EntityContainerEntitySet.cs
- XmlKeywords.cs
- SerializationSectionGroup.cs
- ListSortDescriptionCollection.cs
- EmbeddedMailObjectsCollection.cs
- DataServiceHost.cs
- HtmlInputReset.cs
- TreePrinter.cs
- Sentence.cs
- BitmapPalettes.cs
- ExpandSegmentCollection.cs
- HealthMonitoringSectionHelper.cs
- SqlRemoveConstantOrderBy.cs
- FixedSOMFixedBlock.cs
- DelegateSerializationHolder.cs
- EntityConnectionStringBuilder.cs
- XmlNamespaceDeclarationsAttribute.cs
- _OSSOCK.cs
- ObjectSet.cs
- OneWayChannelListener.cs
- GridViewRowPresenter.cs
- InternalTransaction.cs
- ComponentCodeDomSerializer.cs
- ValueQuery.cs
- RemotingSurrogateSelector.cs
- NativeMethodsOther.cs
- LinqToSqlWrapper.cs
- WindowsStreamSecurityUpgradeProvider.cs
- SqlDataAdapter.cs
- PowerModeChangedEventArgs.cs
- COSERVERINFO.cs
- FontStretch.cs
- DesignerView.Commands.cs
- BinaryCommonClasses.cs
- ByteStorage.cs
- ProfileService.cs
- FontFamilyValueSerializer.cs
- SafeUserTokenHandle.cs
- IgnoreSection.cs
- AutomationPatternInfo.cs
- XmlWellformedWriter.cs
- LinearKeyFrames.cs
- BinaryParser.cs
- WindowsScroll.cs
- SQLMembershipProvider.cs
- HostedHttpContext.cs
- AnnotationAdorner.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- sqlcontext.cs
- MtomMessageEncodingElement.cs
- FixedMaxHeap.cs
- IisTraceListener.cs
- Underline.cs
- AjaxFrameworkAssemblyAttribute.cs
- MemberMemberBinding.cs
- ObjectQueryExecutionPlan.cs
- Relationship.cs
- TemplateEditingVerb.cs
- SID.cs
- CompilerInfo.cs
- SiteMapNode.cs
- MDIControlStrip.cs
- TextViewElement.cs
- RTLAwareMessageBox.cs
- ItemChangedEventArgs.cs
- CharKeyFrameCollection.cs
- CodeDefaultValueExpression.cs
- ResXResourceSet.cs