System.Runtime.InteropServices.RuntimeEnvironment.FromGlobalAccessCache C# (CSharp) Method

FromGlobalAccessCache() public static method

public static FromGlobalAccessCache ( System a ) : bool
a System
return bool
        public static bool FromGlobalAccessCache(System.Reflection.Assembly a)
        {
            return false;
        }
        public static string GetRuntimeDirectory()

Usage Example

Exemplo n.º 1
0
        public static void RuntimeEnvironmentNegTest()
        {
            Type     clsType = typeof(RuntimeEnvironmentTest);
            Assembly assem   = clsType.Assembly;

            Assert.True(!RuntimeEnvironment.FromGlobalAccessCache(assem));

            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.SystemConfigurationFile);

            Guid guid;

            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.GetRuntimeInterfaceAsObject(guid, guid));
            Assert.Throws <PlatformNotSupportedException>(() => RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(guid, guid));
        }
All Usage Examples Of System.Runtime.InteropServices.RuntimeEnvironment::FromGlobalAccessCache