ThmxTheme.Open method (Stream, FileMode, FileAccess)
Opens a theme package using the given I/O stream, file mode, and file access.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function Open ( _
stream As Stream, _
mode As FileMode, _
access As FileAccess _
) As ThmxTheme
'Usage
Dim stream As Stream
Dim mode As FileMode
Dim access As FileAccess
Dim returnValue As ThmxTheme
returnValue = ThmxTheme.Open(stream, mode, _
access)
public static ThmxTheme Open(
Stream stream,
FileMode mode,
FileAccess access
)
Parameters
stream
Type: System.IO.StreamThe I/O stream on which to open the package.
mode
Type: System.IO.FileModeThe file mode in which to open the package.
access
Type: System.IO.FileAccessThe file access with which to open the package.
Return value
Type: Microsoft.SharePoint.Utilities.ThmxTheme
A ThmxTheme object that represents the opened theme.