WstFile.Open Method (WstContext, String, FileMode, FileAccess)

[This is internal Microsoft documentation - Do not distribute.]

Opens a FileStream on the specified path, having the specified mode with read, write, or read/write access.

Namespace: Microsoft.Webstore.WstClient
Assembly: ICL (in icl.dll)

Syntax

'Declaration

  Public Shared Function Open ( _
    context As WstContext, _
    path As String, _
    mode As FileMode, _
    access As FileAccess _
) As WstFileStream
  public static WstFileStream Open (
    WstContext context,
    string path,
    FileMode mode,
    FileAccess access
)

Parameters

  • context
    The Webstore context for this operation.
  • path
    The file to open.
  • mode
    A FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.
  • access
    A FileAccess value that specifies the operations that can be performed on the file.

Return Value

An unshared WstFileStream that provides access to the specified file, with the specified mode and access.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

WstFile Class
WstFile Members
Microsoft.Webstore.WstClient Namespace