GacUninstallAssembly() 개인적인 메소드

private GacUninstallAssembly ( IntPtr InContext, String InAssemblyName, String InDescription, String InUniqueID ) : bool
InContext System.IntPtr
InAssemblyName String
InDescription String
InUniqueID String
리턴 bool
예제 #1
0
        public static void GacUninstallAssembly(
            IntPtr InContext,
            String InAssemblyName,
            String InDescription,
            String InUniqueID)
        {
            Boolean Res;

            if (Is64Bit)
            {
                Res = NativeAPI_x64.GacUninstallAssembly(InContext, InAssemblyName, InDescription, InUniqueID);
            }
            else
            {
                Res = NativeAPI_x86.GacUninstallAssembly(InContext, InAssemblyName, InDescription, InUniqueID);
            }
            if (!Res)
            {
                throw new ApplicationException("Unable to install assembly in the GAC. This usually indicates either an invalid assembly path or you are not admin.");
            }
        }