Code:
/ DotNET / DotNET / 8.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
- UncommonField.cs
- ObjectListFieldsPage.cs
- CompositeCollection.cs
- _LocalDataStoreMgr.cs
- Calendar.cs
- TextDecoration.cs
- CircleHotSpot.cs
- ErrorFormatter.cs
- ItemDragEvent.cs
- CompilerError.cs
- PowerStatus.cs
- WmlPageAdapter.cs
- ResourceReferenceKeyNotFoundException.cs
- SecurityException.cs
- XmlAnyAttributeAttribute.cs
- AnonymousIdentificationSection.cs
- ObjectDataSourceSelectingEventArgs.cs
- SecurityContext.cs
- DEREncoding.cs
- XsltSettings.cs
- ApplicationProxyInternal.cs
- IChannel.cs
- DefaultPrintController.cs
- UnsafeNativeMethods.cs
- CSharpCodeProvider.cs
- BaseTemplateParser.cs
- TableSectionStyle.cs
- Point4D.cs
- XhtmlBasicTextBoxAdapter.cs
- DefaultEventAttribute.cs
- SoapObjectReader.cs
- CompiledELinqQueryState.cs
- UnsafeNativeMethods.cs
- FontStretches.cs
- DataKeyCollection.cs
- XmlStreamStore.cs
- CustomAttributeFormatException.cs
- TemplateField.cs
- ToolStripSeparator.cs
- ADMembershipUser.cs
- TabControlDesigner.cs
- OleDbInfoMessageEvent.cs
- ClientEventManager.cs
- ErasingStroke.cs
- CodeStatementCollection.cs
- InternalConfigHost.cs
- ExclusiveHandleList.cs
- XmlSchemaRedefine.cs
- infer.cs
- SettingsSavedEventArgs.cs
- XmlSchemaCompilationSettings.cs
- wmiutil.cs
- SimpleExpression.cs
- COM2FontConverter.cs
- XmlSerializerVersionAttribute.cs
- RangeContentEnumerator.cs
- WeakReadOnlyCollection.cs
- InvokeBinder.cs
- ObservableDictionary.cs
- XmlWrappingReader.cs
- RegexReplacement.cs
- BinaryObjectInfo.cs
- DeclarativeCatalogPart.cs
- HostingEnvironment.cs
- WpfGeneratedKnownProperties.cs
- CodePageEncoding.cs
- XsdValidatingReader.cs
- IssuedTokenClientCredential.cs
- BuildResult.cs
- EmptyQuery.cs
- FixedNode.cs
- ComponentChangingEvent.cs
- TypeUtil.cs
- MsmqInputChannelListenerBase.cs
- PolicyAssertionCollection.cs
- ObjectHelper.cs
- AssemblyCollection.cs
- Model3DGroup.cs
- SequentialWorkflowRootDesigner.cs
- keycontainerpermission.cs
- GeometryGroup.cs
- VersionedStreamOwner.cs
- ChildDocumentBlock.cs
- DictionarySectionHandler.cs
- XmlSortKeyAccumulator.cs
- ContextQuery.cs
- DbConnectionClosed.cs
- FieldMetadata.cs
- RenameRuleObjectDialog.cs
- CategoryNameCollection.cs
- ProxyRpc.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SmiMetaDataProperty.cs
- VirtualPathUtility.cs
- Baml2006ReaderFrame.cs
- XmlUnspecifiedAttribute.cs
- TextBox.cs
- DefaultWorkflowSchedulerService.cs
- XmlExpressionDumper.cs
- XmlHierarchicalEnumerable.cs