Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / HostDesigntimeLicenseContext.cs / 1 / HostDesigntimeLicenseContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { ////// /// This class will provide a license context that the LicenseManager can use /// to get to the design time services, like ITypeResolutionService. /// internal class HostDesigntimeLicenseContext : DesigntimeLicenseContext { private IServiceProvider provider; public HostDesigntimeLicenseContext(IServiceProvider provider) { this.provider = provider; } public override object GetService(Type serviceClass) { return provider.GetService(serviceClass); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartEditorOkVerb.cs
- BlurEffect.cs
- Selection.cs
- WizardSideBarListControlItemEventArgs.cs
- SQLDecimal.cs
- IdentifierService.cs
- GridEntryCollection.cs
- FormViewDeletedEventArgs.cs
- ExceptionUtil.cs
- Int32.cs
- ContainsRowNumberChecker.cs
- EdgeProfileValidation.cs
- TextFormatterContext.cs
- OutputCacheSettingsSection.cs
- AutomationPropertyInfo.cs
- RawStylusInputReport.cs
- AnonymousIdentificationModule.cs
- PropertyValueUIItem.cs
- UniqueConstraint.cs
- _NestedSingleAsyncResult.cs
- UnsafeNativeMethods.cs
- OracleInternalConnection.cs
- ThumbAutomationPeer.cs
- XamlFxTrace.cs
- RotateTransform.cs
- Menu.cs
- InputMethod.cs
- RequestCachePolicyConverter.cs
- SqlTypeConverter.cs
- WebHeaderCollection.cs
- StringConverter.cs
- Duration.cs
- BamlLocalizableResourceKey.cs
- EmptyCollection.cs
- IdentityManager.cs
- PolyBezierSegment.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AutomationEvent.cs
- TextElementCollection.cs
- NameValuePair.cs
- ZipPackage.cs
- NameSpaceEvent.cs
- SqlConnectionHelper.cs
- XmlDocument.cs
- ResourcePermissionBaseEntry.cs
- SystemResources.cs
- SelectionChangedEventArgs.cs
- Rect.cs
- StylusEditingBehavior.cs
- grammarelement.cs
- CancelEventArgs.cs
- XmlIncludeAttribute.cs
- DynamicField.cs
- QueryAsyncResult.cs
- InheritanceService.cs
- propertytag.cs
- RuleSettingsCollection.cs
- CommonXSendMessage.cs
- HttpRuntime.cs
- RepeaterItem.cs
- VarRemapper.cs
- DefaultValueAttribute.cs
- SafeNativeMethods.cs
- EpmContentSerializer.cs
- BitSet.cs
- LinqDataSourceDisposeEventArgs.cs
- DataControlButton.cs
- AxisAngleRotation3D.cs
- MetadataArtifactLoaderCompositeResource.cs
- EventLog.cs
- ResourcesBuildProvider.cs
- ConfigViewGenerator.cs
- PathFigure.cs
- GenericWebPart.cs
- sqlstateclientmanager.cs
- ContactManager.cs
- LongValidator.cs
- SecurityState.cs
- QuotedPrintableStream.cs
- LinqExpressionNormalizer.cs
- XmlSchemaInclude.cs
- DescriptionAttribute.cs
- COMException.cs
- SecurityHeaderLayout.cs
- Visual3D.cs
- FormClosingEvent.cs
- IntegerValidator.cs
- _NestedSingleAsyncResult.cs
- StorageScalarPropertyMapping.cs
- MouseButtonEventArgs.cs
- Stack.cs
- ToolboxItemCollection.cs
- CodeGroup.cs
- DataControlButton.cs
- FixedSOMTextRun.cs
- Token.cs
- ClusterRegistryConfigurationProvider.cs
- DelayDesigner.cs
- InlineCollection.cs
- RequiredFieldValidator.cs