MobileFile Methods |
The MobileFile type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddLinkedResourceAsync |
Adds a depdendency to another resource. This depdency is used to monitor changes to the linked resources in case
of offline writes: ex. if Resource1 and Resource2 were both created while offline and Resource2 embeds a link to
Resource1, the URI for Resource1 would be a temporary one created offline by the system. On going online, when
the real URI for Resource1 gets assigned by the service, Resource2 would get
notified in OnLinkedResourceUriChanged() and can update the embedded link to the new URI.
(Inherited from MobileResource.) |
![]() | DeleteAsync |
Deletes the file. Caches the delete locally if offline.
|
![]() | DeleteAsync(Boolean) |
Deletes the file.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetConflictingFileAsync |
Returns the file that conflicts with this one. Only the cached copy is returned (if it exists), so callers should refresh
the file from the service first.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | OpenDataStreamAsync |
Gets the stream that can be used to read the file contents.
|
![]() | OpenStreamAsync |
Gets the stream that can be used to read the file contents.
|
![]() | PinAsync |
Pins this resource.
(Inherited from MobileResource.) |
![]() | ReloadAsync |
Reloads the data that was last downloaded from the service. If the device is offline
then it loads data from the cache. Any offline updates are not discarded.
(Inherited from MobileResource.) |
![]() | ReloadAsync(Boolean, Boolean) |
Reloads the data.
(Inherited from MobileResource.) |
![]() | SaveAsync(Stream, String) |
Saves any changes to the object back to the service. Caches the changes locally if offline.
|
![]() | SaveAsync(IInputStream, String) |
Saves any changes to the object back to the service. Caches the changes locally if offline.
|
![]() | SaveAsync(Stream, String, Boolean) |
Saves any changes to the file back to the service. If saveIfOffline is true, it will cache the changes incase of offline.
|
![]() | SaveAsync(IInputStream, String, Boolean) |
Saves any changes to the file back to the service. If saveIfOffline is true, it will cache the changes incase of offline.
|
![]() | StartListeningForChanges |
Starts listening for cache changes and raises the ResourceChanged event. Callers must call StopListeningForChanges() or Dispose()
when events are no longer required otherwise the object will leak.
(Inherited from MobileResource.) |
![]() | StopListeningForChanges |
Stops listening for cache changes and ResourceChanged will no longer be raised.
(Inherited from MobileResource.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UnpinAsync |
Unpins this resource.
(Inherited from MobileResource.) |