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

Материал из VB Эксперт
Версия от 12:50, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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