System.GAC.AssemblyCache.GetCachePath C# (CSharp) Method

GetCachePath() private method

private GetCachePath ( ASM_CACHE_FLAGS dwCacheFlags, [ pwzCachePath, uint &pcchPath ) : void
dwCacheFlags ASM_CACHE_FLAGS
pwzCachePath [
pcchPath uint
return void
        static extern void GetCachePath(ASM_CACHE_FLAGS dwCacheFlags, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwzCachePath,
			ref uint pcchPath);

Usage Example

示例#1
0
        public static String GetDownloadPath()
        {
            uint          bufferSize = 255;
            StringBuilder buffer     = new StringBuilder((int)bufferSize);

            AssemblyCache.GetCachePath(ASM_CACHE_FLAGS.ASM_CACHE_DOWNLOAD, buffer, ref bufferSize);
            return(buffer.ToString());
        }