VB.Net by API/System.IO.IsolatedStorage/IsolatedStorageScope — различия между версиями

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

Текущая версия на 12:50, 26 мая 2010

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