Code:
/ FX-1434 / FX-1434 / 1.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
- HwndTarget.cs
- LabelTarget.cs
- CoTaskMemUnicodeSafeHandle.cs
- TreeViewHitTestInfo.cs
- ReadonlyMessageFilter.cs
- ToolStripContextMenu.cs
- uribuilder.cs
- XmlMtomWriter.cs
- VerticalAlignConverter.cs
- SectionVisual.cs
- ZoneLinkButton.cs
- DataGridViewElement.cs
- ContentIterators.cs
- RpcCryptoRequest.cs
- DomainConstraint.cs
- OneWayBindingElementImporter.cs
- OneOfElement.cs
- KeyInterop.cs
- OperandQuery.cs
- Tile.cs
- SchemaHelper.cs
- SpeechAudioFormatInfo.cs
- HtmlTableCell.cs
- IpcChannel.cs
- CheckoutException.cs
- Simplifier.cs
- DataTableNewRowEvent.cs
- PointAnimationUsingKeyFrames.cs
- TabControlCancelEvent.cs
- SchemaTypeEmitter.cs
- CardSpaceException.cs
- QilTernary.cs
- AnonymousIdentificationModule.cs
- WindowsComboBox.cs
- ArrayTypeMismatchException.cs
- CookieParameter.cs
- SourceFileBuildProvider.cs
- X509Utils.cs
- BooleanToVisibilityConverter.cs
- SqlServer2KCompatibilityAnnotation.cs
- PrivacyNoticeBindingElementImporter.cs
- EncryptedKeyHashIdentifierClause.cs
- StylusSystemGestureEventArgs.cs
- PlatformNotSupportedException.cs
- DataGridViewCellParsingEventArgs.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- RandomDelayQueuedSendsAsyncResult.cs
- SqlDataSourceParameterParser.cs
- Int64Storage.cs
- ConfigDefinitionUpdates.cs
- NativeMethodsCLR.cs
- CommonDialog.cs
- ColorAnimationUsingKeyFrames.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TextCollapsingProperties.cs
- EdmError.cs
- XamlPointCollectionSerializer.cs
- ZoomPercentageConverter.cs
- BitmapInitialize.cs
- MaskedTextBoxTextEditorDropDown.cs
- BinaryQueryOperator.cs
- CrossAppDomainChannel.cs
- QilSortKey.cs
- EmptyCollection.cs
- RoutedEventArgs.cs
- MediaSystem.cs
- ISAPIApplicationHost.cs
- ConnectionString.cs
- CodeDefaultValueExpression.cs
- WindowsFormsLinkLabel.cs
- PopupRootAutomationPeer.cs
- LookupTables.cs
- DocumentAutomationPeer.cs
- App.cs
- UnaryExpression.cs
- XmlQueryType.cs
- RelationshipNavigation.cs
- HttpListenerException.cs
- oledbmetadatacolumnnames.cs
- TextTreeTextNode.cs
- MenuBindingsEditorForm.cs
- TextContainer.cs
- ConfigXmlWhitespace.cs
- CrossSiteScriptingValidation.cs
- validationstate.cs
- TableRowCollection.cs
- Column.cs
- XmlArrayItemAttributes.cs
- SchemeSettingElementCollection.cs
- Point3DValueSerializer.cs
- SafeRightsManagementSessionHandle.cs
- CellRelation.cs
- SafeThemeHandle.cs
- TileModeValidation.cs
- ReceiveContextCollection.cs
- ComponentResourceManager.cs
- AggregateNode.cs
- TraceListener.cs
- NetDispatcherFaultException.cs
- ListItemCollection.cs