VB.Net by API/System.IO.IsolatedStorage/IsolatedStorageScope

Материал из VB Эксперт
Перейти к: навигация, поиск

IsolatedStorageScope.Assembly

  
Imports System.IO.IsolatedStorage
        
Public Class Tester
    Public Shared Sub Main
        Dim myIsoStore As IsolatedStorageFile
        Dim myISS As IsolatedStorageScope
        Try
            myISS = IsolatedStorageScope.Domain Or IsolatedStorageScope.Assembly Or IsolatedStorageScope.User
            myIsoStore = IsolatedStorageFile.GetStore(myISS, Nothing, Nothing)
        Catch ex As IsolatedStorageException
            Console.WriteLine(ex.Message)
        End Try
    End Sub
End Class


IsolatedStorageScope.Domain

  
Imports System.IO.IsolatedStorage
        
Public Class Tester
    Public Shared Sub Main
        Dim myIsoStore As IsolatedStorageFile
        Dim myISS As IsolatedStorageScope
        Try
            myISS = IsolatedStorageScope.Domain Or IsolatedStorageScope.Assembly Or IsolatedStorageScope.User
            myIsoStore = IsolatedStorageFile.GetStore(myISS, Nothing, Nothing)
        Catch ex As IsolatedStorageException
            Console.WriteLine(ex.Message)
        End Try
    End Sub
End Class