System.IO.IsolatedStorage.IsolatedStorage.VerifyScope C# (CSharp) Méthode

VerifyScope() private static méthode

private static VerifyScope ( IsolatedStorageScope scope ) : void
scope IsolatedStorageScope
Résultat void
        private static void VerifyScope(IsolatedStorageScope scope)
        {
            // The only valid ones are the ones that have a helper constant defined above (c_*)

            switch (scope)
            {
                case IsolatedStorageScope.User | IsolatedStorageScope.Assembly:
                case IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain:
                case IsolatedStorageScope.Roaming | IsolatedStorageScope.User | IsolatedStorageScope.Assembly:
                case IsolatedStorageScope.Roaming | IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain:
                case IsolatedStorageScope.Machine | IsolatedStorageScope.Assembly:
                case IsolatedStorageScope.Machine | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain:
                case IsolatedStorageScope.Application | IsolatedStorageScope.User:
                case IsolatedStorageScope.Application | IsolatedStorageScope.User | IsolatedStorageScope.Roaming:
                case IsolatedStorageScope.Application | IsolatedStorageScope.Machine:
                    break;
                default:
                    throw new ArgumentException(SR.IsolatedStorage_Scope_Invalid);
            }
        }
    }