Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Contiene el estado sin conexión de la carpeta.
Esta propiedad es de solo lectura.
Sintaxis
iOfflineStatus = Folder2.OfflineStatus
Valor de propiedad
Entero que se establece en uno de los valores siguientes.
(OFS_DIRTYCACHE)
El servidor está en línea con cambios no sincronizados.
(OFS_INACTIVE)
El almacenamiento en caché sin conexión no está habilitado para esta carpeta.
(OFS_OFFLINE)
El servidor está sin conexión.
(OFS_ONLINE)
El servidor está en línea.
(OFS_SERVERBACK)
El servidor está sin conexión, pero se puede acceder a él.
Comentarios
Nota
Los archivos sin conexión deben estar habilitados a través de opciones de carpeta para que OfflineStatus funcione correctamente. Si la opción Archivos sin conexión no está habilitada, la propiedad devuelve OFS_INACTIVE.
Ejemplos
En el ejemplo siguiente se muestra el uso adecuado de OfflineStatus para JScript, VBScript y Visual Basic.
Jscript:
<script language="JScript">
function fnOfflineStatusJ()
{
var objShell = new ActiveXObject("shell.application");
var objFolder2 = new Object;
objFolder2 = objShell.NameSpace("\\\\server\\share\\folder");
if (objFolder2 != null)
{
var nReturn;
nReturn = objFolder2.OfflineStatus;
}
}
</script>
Vbscript:
<script language="VBScript">
function fnOfflineStatusVB()
dim objShell
dim objFolder2
set objShell = CreateObject("shell.application")
set objFolder2 = objShell.NameSpace("\\server\share\folder")
if (not objFolder2 is nothing) then
dim nReturn
nReturn = objFolder2.OfflineStatus
end if
set objFolder = nothing
set objShell = nothing
end function
</script>
Visual Basic:
Private Sub fnOfflineStatusVB()
Dim objShell As Shell
Dim objFolder2 As Folder2
Set objShell = New Shell
Set objFolder2 = objShell.NameSpace("\\server\share\folder")
If (Not objFolder2 Is Nothing) Then
Dim nReturn As Integer
nReturn = objFolder2.OfflineStatus()
End If
Set objFolder2 = Nothing
Set objShell = Nothing
End Sub
Requisitos
| Requisito | Value |
|---|---|
| Cliente mínimo compatible |
Windows 2000 Professional, Windows XP [solo aplicaciones de escritorio] |
| Servidor mínimo compatible |
Windows Server 2003 [solo aplicaciones de escritorio] |
| Encabezado |
|
| IDL |
|
| Archivo DLL |
|
Consulte también