Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / LicenseContext.cs / 1 / LicenseContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using Microsoft.Win32; using System; using System.Diagnostics; using System.Reflection; using System.Runtime.Remoting; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class LicenseContext : IServiceProvider { ///Specifies when the licensed object can be used. ////// public virtual LicenseUsageMode UsageMode { get { return LicenseUsageMode.Runtime; } } ///When overridden in a derived class, gets a value that specifies when a license can be used. ////// public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { return null; } ///When overridden in a derived class, gets a saved license /// key for the specified type, from the specified resource assembly. ////// public virtual object GetService(Type type) { return null; } ///When overridden in a derived class, will return an object that implements the asked for service. ////// public virtual void SetSavedLicenseKey(Type type, string key) { // no-op; } } }When overridden in a derived class, sets a license key for the specified type. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PieceNameHelper.cs
- SafeReadContext.cs
- DnsPermission.cs
- AsyncCompletedEventArgs.cs
- UnsafeNativeMethods.cs
- COM2IDispatchConverter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- DWriteFactory.cs
- SettingsBindableAttribute.cs
- WeakEventTable.cs
- Int32Rect.cs
- RegexWorker.cs
- DockProviderWrapper.cs
- PublisherMembershipCondition.cs
- SqlDataSourceEnumerator.cs
- X509CertificateTokenFactoryCredential.cs
- CannotUnloadAppDomainException.cs
- TablePattern.cs
- ObjectDataSourceMethodEventArgs.cs
- SessionParameter.cs
- TimeoutTimer.cs
- SmtpLoginAuthenticationModule.cs
- ReflectionTypeLoadException.cs
- InArgumentConverter.cs
- UnsupportedPolicyOptionsException.cs
- SqlFileStream.cs
- PolyQuadraticBezierSegment.cs
- SecurityTokenProviderContainer.cs
- FormViewPagerRow.cs
- NotCondition.cs
- CalendarDay.cs
- ComponentCommands.cs
- RangeBase.cs
- ContainerSelectorBehavior.cs
- printdlgexmarshaler.cs
- StructuralCache.cs
- InternalControlCollection.cs
- ToolboxItem.cs
- AtomParser.cs
- FixedDocument.cs
- ExtenderProvidedPropertyAttribute.cs
- SpecialFolderEnumConverter.cs
- SoapFormatterSinks.cs
- WebServiceHostFactory.cs
- LingerOption.cs
- DesignerActionUIService.cs
- FormattedTextSymbols.cs
- WebBrowsableAttribute.cs
- ReaderWriterLockWrapper.cs
- ResourcePermissionBase.cs
- TreeViewCancelEvent.cs
- XmlSchemaComplexContentExtension.cs
- AutomationElement.cs
- SoundPlayer.cs
- SpellerHighlightLayer.cs
- InteropAutomationProvider.cs
- DataGridViewColumnConverter.cs
- COSERVERINFO.cs
- BufferedResponseStream.cs
- IfElseDesigner.xaml.cs
- WebContext.cs
- TypeConverterHelper.cs
- TagPrefixInfo.cs
- SmiRequestExecutor.cs
- TransferRequestHandler.cs
- _LazyAsyncResult.cs
- Floater.cs
- SafeFindHandle.cs
- JavaScriptSerializer.cs
- TextTreeRootTextBlock.cs
- Selector.cs
- TCPListener.cs
- Page.cs
- CompileLiteralTextParser.cs
- GridViewColumn.cs
- SQLChars.cs
- FirewallWrapper.cs
- DesignTimeXamlWriter.cs
- Span.cs
- FloatMinMaxAggregationOperator.cs
- PropertyGroupDescription.cs
- SecureConversationServiceElement.cs
- AlgoModule.cs
- NamespaceEmitter.cs
- UrlAuthFailedErrorFormatter.cs
- PrinterUnitConvert.cs
- OperatingSystem.cs
- BinaryObjectReader.cs
- ConfigXmlDocument.cs
- WmlControlAdapter.cs
- DSASignatureFormatter.cs
- EventOpcode.cs
- MatrixConverter.cs
- ByteBufferPool.cs
- ConfigXmlComment.cs
- ResourceAttributes.cs
- BooleanExpr.cs
- SmtpDateTime.cs
- Hashtable.cs