Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1305376 / 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.Runtime.Versioning; 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. [System.Security.SecuritySafeCritical] // auto-generated [ResourceExposure(ResourceScope.None)] [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncryptedPackageFilter.cs
- CommandArguments.cs
- IIS7UserPrincipal.cs
- RowSpanVector.cs
- ColorAnimationUsingKeyFrames.cs
- CharacterShapingProperties.cs
- BaseAsyncResult.cs
- ContextBase.cs
- BrowsableAttribute.cs
- IntSecurity.cs
- EntityViewGenerator.cs
- ExternalException.cs
- BitmapSourceSafeMILHandle.cs
- DispatcherHookEventArgs.cs
- InvalidProgramException.cs
- StreamInfo.cs
- X509CertificateValidator.cs
- MeasureItemEvent.cs
- ConnectionStringsExpressionBuilder.cs
- Funcletizer.cs
- Size3D.cs
- DataSourceView.cs
- SystemUdpStatistics.cs
- PlatformCulture.cs
- TimeoutValidationAttribute.cs
- EdmFunction.cs
- InvalidFilterCriteriaException.cs
- CompatibleComparer.cs
- ListViewCommandEventArgs.cs
- sqlpipe.cs
- SchemaLookupTable.cs
- LocalizabilityAttribute.cs
- StrongName.cs
- InvokePattern.cs
- RMEnrollmentPage2.cs
- SqlComparer.cs
- StringReader.cs
- ByteKeyFrameCollection.cs
- HtmlInputHidden.cs
- BitmapDecoder.cs
- ScriptControlDescriptor.cs
- Effect.cs
- WebRequestModulesSection.cs
- CryptoConfig.cs
- ReachNamespaceInfo.cs
- CancellationHandlerDesigner.cs
- RegexNode.cs
- JsonQNameDataContract.cs
- WindowsStreamSecurityBindingElement.cs
- LabelEditEvent.cs
- Vector3DAnimation.cs
- SimpleBitVector32.cs
- Screen.cs
- EdmComplexTypeAttribute.cs
- ImageListUtils.cs
- RangeContentEnumerator.cs
- CodeSubDirectory.cs
- Monitor.cs
- ArglessEventHandlerProxy.cs
- TreeViewCancelEvent.cs
- TextCompositionManager.cs
- WindowCollection.cs
- WindowsIPAddress.cs
- CLRBindingWorker.cs
- CodeCommentStatementCollection.cs
- ActivityDesignerResources.cs
- PathGeometry.cs
- mil_sdk_version.cs
- InteropBitmapSource.cs
- SmtpMail.cs
- HtmlControlAdapter.cs
- PolicyStatement.cs
- Processor.cs
- LinqDataSourceDeleteEventArgs.cs
- BufferAllocator.cs
- ISFClipboardData.cs
- EdmError.cs
- ToolStripLocationCancelEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- Rijndael.cs
- DocumentApplicationDocumentViewer.cs
- BaseTreeIterator.cs
- InlineObject.cs
- CorrelationTokenTypeConvertor.cs
- TypeExtensionSerializer.cs
- _Connection.cs
- UnitySerializationHolder.cs
- ArraySegment.cs
- XmlBoundElement.cs
- ToolStripControlHost.cs
- PtsPage.cs
- XsltContext.cs
- SymbolMethod.cs
- input.cs
- GenerateDerivedKeyRequest.cs
- UnitySerializationHolder.cs
- CompositionAdorner.cs
- RenameRuleObjectDialog.cs
- HierarchicalDataBoundControlAdapter.cs
- Aggregates.cs