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
- IIS7WorkerRequest.cs
- hresults.cs
- Decorator.cs
- Oid.cs
- VolatileEnlistmentState.cs
- AsyncPostBackErrorEventArgs.cs
- ExtendedProtectionPolicyTypeConverter.cs
- MapPathBasedVirtualPathProvider.cs
- Stylesheet.cs
- CodeDirectiveCollection.cs
- ServiceErrorHandler.cs
- SelectedPathEditor.cs
- RegexInterpreter.cs
- HostingEnvironmentException.cs
- ISAPIRuntime.cs
- CallbackCorrelationInitializer.cs
- DocumentViewer.cs
- StateDesigner.Helpers.cs
- PrintDialog.cs
- DelayLoadType.cs
- ConversionContext.cs
- DataGridViewRowPostPaintEventArgs.cs
- CheckBox.cs
- Timer.cs
- DisplayNameAttribute.cs
- XmlNodeList.cs
- VerificationException.cs
- Attribute.cs
- SoapElementAttribute.cs
- WorkflowOperationInvoker.cs
- _BaseOverlappedAsyncResult.cs
- HtmlInputPassword.cs
- Events.cs
- WithStatement.cs
- JsonWriter.cs
- Ray3DHitTestResult.cs
- DeferredSelectedIndexReference.cs
- XmlNavigatorStack.cs
- StreamGeometry.cs
- TableLayoutPanel.cs
- SystemColorTracker.cs
- WindowsGraphics.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XPathNavigator.cs
- Point4DValueSerializer.cs
- StrokeCollection2.cs
- DistinctQueryOperator.cs
- SignatureHelper.cs
- TitleStyle.cs
- PersonalizablePropertyEntry.cs
- ToolStripTextBox.cs
- ScriptComponentDescriptor.cs
- EntityClientCacheKey.cs
- MulticastIPAddressInformationCollection.cs
- GeometryDrawing.cs
- _FtpControlStream.cs
- TypedTableBase.cs
- CodeDefaultValueExpression.cs
- ZipIOCentralDirectoryBlock.cs
- PrimitiveList.cs
- BuildProviderAppliesToAttribute.cs
- TreeChangeInfo.cs
- XmlCDATASection.cs
- ReadOnlyCollection.cs
- NumberAction.cs
- PromptBuilder.cs
- StreamWithDictionary.cs
- RedistVersionInfo.cs
- AuthenticationConfig.cs
- LineSegment.cs
- MessageLogger.cs
- PlaceHolder.cs
- DataGridPageChangedEventArgs.cs
- Translator.cs
- IPipelineRuntime.cs
- ManifestSignatureInformation.cs
- HMAC.cs
- EntityDataSourceWrapperCollection.cs
- OverrideMode.cs
- Array.cs
- MDIClient.cs
- PropertyGridView.cs
- TraceLevelHelper.cs
- MasterPageBuildProvider.cs
- ColorConvertedBitmap.cs
- RuleSettingsCollection.cs
- CreateUserWizard.cs
- DispatchWrapper.cs
- ListBoxItemWrapperAutomationPeer.cs
- InputLanguageManager.cs
- SpnegoTokenProvider.cs
- HttpCacheVary.cs
- WebSysDefaultValueAttribute.cs
- TokenizerHelper.cs
- DataColumnMapping.cs
- HeaderUtility.cs
- MobileControlsSection.cs
- DependencyPropertyValueSerializer.cs
- SecurityRuntime.cs
- WizardForm.cs