src/Microsoft/Windows/ComponentObjectModel/Shell/_Library/ShellExtensionManager.cs
/// <summary>
/// Unregisters a shell extension and notifies the Shell about the unregistration event.
/// </summary>
/// <param name="shellExtensionInformation">Information about the shell extension.</param>
/// <param name="scope">The registration scope of the shell extension.</param>
Unregisters a shell extension and notifies the Shell about the unregistration event.
Unregisters a shell extension and notifies the Shell about the unregistration event .
public void Unregister( ShellExtensionInformation shellExtensionInformation, ComponentRegistrationScope scope ) {
            if( null == shellExtensionInformation ) {
                throw new ArgumentNullException( nameof( shellExtensionInformation ) );
            }
            foreach( string progId in shellExtensionInformation.Associations ) {
                Disassociate( progId, shellExtensionInformation.ShellHandlerType, shellExtensionInformation.Name, shellExtensionInformation.CLSID.ToString( "B" ), scope );
            }
            NotifyShell();
        }
public void Unregister ( ShellExtensionInformation shellExtensionInformation , ComponentRegistrationScope scope ) { if ( null == shellExtensionInformation ) { throw new ArgumentNullException ( nameof ( shellExtensionInformation ) ) ; } foreach ( string progId in shellExtensionInformation . Associations ) { Disassociate ( progId , shellExtensionInformation . ShellHandlerType , shellExtensionInformation . Name , shellExtensionInformation . CLSID . ToString ( " " ) , scope ) ; } NotifyShell ( ) ; }
Unregisters a shell extension and notifies the Shell about the unregistration event.
Unregisters a shell extension and notifies the Shell about the unregistration event .
shellExtensionInformation
ShellExtensionInformation
Information about the shell extension.
Information about the shell extension .
scope
ComponentRegistrationScope
The registration scope of the shell extension.
The registration scope of the shell extension .