Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1 / ExtensibleClassFactory.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ExtensibleClassFactory ** ** ** Purpose: Methods used to customize the creation of managed objects that ** extend from unmanaged objects. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.CompilerServices; using System; [System.Runtime.InteropServices.ComVisible(true)] public sealed class ExtensibleClassFactory { // Prevent instantiation. private ExtensibleClassFactory() {} // Register a delegate that will be called whenever an instance of a managed // type that extends from an unmanaged type needs to allocate the aggregated // unmanaged object. This delegate is expected to allocate and aggregate the // unmanaged object and is called in place of a CoCreateInstance. This // routine must be called in the context of the static initializer for the // class for which the callbacks will be made. // It is not legal to register this callback from a class that has any // parents that have already registered a callback. [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback); } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlDataProvider.cs
- TypeInfo.cs
- Encoding.cs
- Flattener.cs
- ToolStripDropDownDesigner.cs
- ExternalCalls.cs
- MessageSmuggler.cs
- DiscoveryViaBehavior.cs
- EntitySqlQueryBuilder.cs
- DefaultTypeArgumentAttribute.cs
- WSMessageEncoding.cs
- ParameterElement.cs
- InternalTypeHelper.cs
- HiddenFieldDesigner.cs
- MemberRestriction.cs
- Rect3D.cs
- HandleDictionary.cs
- TypeSystemHelpers.cs
- ExceptionUtility.cs
- FormatSettings.cs
- ConfigurationStrings.cs
- DesignerPerfEventProvider.cs
- PowerModeChangedEventArgs.cs
- ThousandthOfEmRealPoints.cs
- DBConnection.cs
- NetSectionGroup.cs
- XmlCDATASection.cs
- ByteAnimationUsingKeyFrames.cs
- X509Utils.cs
- _ListenerRequestStream.cs
- ConfigurationConverterBase.cs
- EncryptedPackageFilter.cs
- TextParagraphCache.cs
- PeoplePickerWrapper.cs
- WebPartDisplayModeCollection.cs
- TaskFactory.cs
- RequestQueue.cs
- RuleSettingsCollection.cs
- EventHandlerService.cs
- VisualTreeHelper.cs
- InplaceBitmapMetadataWriter.cs
- LinqExpressionNormalizer.cs
- ReadOnlyDictionary.cs
- TakeQueryOptionExpression.cs
- input.cs
- ValueUnavailableException.cs
- Zone.cs
- KeySpline.cs
- TypeContext.cs
- NavigationWindowAutomationPeer.cs
- ProcessStartInfo.cs
- InputLanguageSource.cs
- ColorIndependentAnimationStorage.cs
- SqlBinder.cs
- StateDesigner.LayoutSelectionGlyph.cs
- PasswordRecovery.cs
- TextElementAutomationPeer.cs
- ConstantCheck.cs
- DataGridViewColumnCollection.cs
- ConfigUtil.cs
- ContentElementCollection.cs
- CanonicalizationDriver.cs
- Regex.cs
- WebPartConnection.cs
- XPathNodePointer.cs
- Label.cs
- WasEndpointConfigContainer.cs
- BmpBitmapDecoder.cs
- AsyncOperationManager.cs
- CompilationRelaxations.cs
- Number.cs
- ApplicationBuildProvider.cs
- RewritingValidator.cs
- SafeCoTaskMem.cs
- DefaultProxySection.cs
- SecurityPermission.cs
- AutoCompleteStringCollection.cs
- HttpRequest.cs
- WizardDesigner.cs
- DataKey.cs
- IdentityHolder.cs
- path.cs
- RadioButtonAutomationPeer.cs
- AsymmetricAlgorithm.cs
- RuntimeConfigurationRecord.cs
- ItemCollection.cs
- ToolBarPanel.cs
- TextEmbeddedObject.cs
- TitleStyle.cs
- MSAAWinEventWrap.cs
- FragmentQuery.cs
- SqlCacheDependencyDatabaseCollection.cs
- EFColumnProvider.cs
- _IPv6Address.cs
- PasswordRecovery.cs
- TraceFilter.cs
- DomNameTable.cs
- WsdlBuildProvider.cs
- DynamicResourceExtensionConverter.cs
- WeakReadOnlyCollection.cs