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
- DocumentAutomationPeer.cs
- MetabaseSettings.cs
- DESCryptoServiceProvider.cs
- HyperlinkAutomationPeer.cs
- tibetanshape.cs
- BaseParaClient.cs
- HostedHttpContext.cs
- Application.cs
- SqlBuilder.cs
- ProfileSection.cs
- SecurityCriticalDataForSet.cs
- BatchWriter.cs
- Accessors.cs
- FamilyTypeface.cs
- recordstatefactory.cs
- EnumValidator.cs
- HashMembershipCondition.cs
- CreateUserWizardDesigner.cs
- TextLineResult.cs
- ServiceElementCollection.cs
- ColumnMapVisitor.cs
- ConfigXmlText.cs
- InheritanceRules.cs
- EdmEntityTypeAttribute.cs
- Axis.cs
- ReaderWriterLock.cs
- UpdatePanelTriggerCollection.cs
- SerializationEventsCache.cs
- Method.cs
- DetailsViewPagerRow.cs
- CharAnimationUsingKeyFrames.cs
- ResourceContainer.cs
- ListDictionaryInternal.cs
- EnumConverter.cs
- CreateParams.cs
- ChangeProcessor.cs
- DbUpdateCommandTree.cs
- XmlNavigatorFilter.cs
- DirectionalLight.cs
- x509utils.cs
- MediaContextNotificationWindow.cs
- DoubleAnimation.cs
- DbConnectionPoolCounters.cs
- XmlIlTypeHelper.cs
- SignatureToken.cs
- InputLanguageSource.cs
- CompositionAdorner.cs
- InvokeHandlers.cs
- FileEnumerator.cs
- GraphicsContainer.cs
- CultureInfoConverter.cs
- DataGridViewRow.cs
- _HelperAsyncResults.cs
- CompositeControlDesigner.cs
- TextViewSelectionProcessor.cs
- DefaultMemberAttribute.cs
- ComboBoxRenderer.cs
- CollectionsUtil.cs
- UIElementParagraph.cs
- ComponentSerializationService.cs
- SqlCommandSet.cs
- NumberAction.cs
- BooleanKeyFrameCollection.cs
- FormClosedEvent.cs
- RowCache.cs
- DebuggerAttributes.cs
- LinqDataView.cs
- TransactedReceiveData.cs
- HyperLinkStyle.cs
- AgileSafeNativeMemoryHandle.cs
- OracleFactory.cs
- EventLogPermission.cs
- UnicodeEncoding.cs
- FileReservationCollection.cs
- WebRequestModuleElement.cs
- AsyncSerializedWorker.cs
- ReceiveReply.cs
- ColorDialog.cs
- ButtonFieldBase.cs
- MemberInitExpression.cs
- RemoteWebConfigurationHostServer.cs
- ListViewGroupConverter.cs
- SelectorItemAutomationPeer.cs
- UrlMapping.cs
- Converter.cs
- EntityDesignerDataSourceView.cs
- PropertyChangingEventArgs.cs
- WebPartEditorCancelVerb.cs
- x509store.cs
- BackStopAuthenticationModule.cs
- RealProxy.cs
- LinearGradientBrush.cs
- FixedSOMLineCollection.cs
- Brushes.cs
- FloaterParaClient.cs
- localization.cs
- SimpleMailWebEventProvider.cs
- EventManager.cs
- SerialPinChanges.cs
- PeerName.cs