SPUserCodeCachedAssemblyGroup.GetFileStream method

Gets a file stream around the file with the specified name.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetFileStream ( _
    fileName As String _
) As FileStream
'Usage
Dim instance As SPUserCodeCachedAssemblyGroup
Dim fileName As String
Dim returnValue As FileStream

returnValue = instance.GetFileStream(fileName)
public FileStream GetFileStream(
    string fileName
)

Parameters

Return value

Type: System.IO.FileStream
A file stream around with the specified file.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The specified file is not found in this user assembly group.

Remarks

This method creates a file stream with permissions set to file open, read access, and able to be read by other files while the file is processed by this SPUserCodeCachedAssemblyGroup.

See also

Reference

SPUserCodeCachedAssemblyGroup class

SPUserCodeCachedAssemblyGroup members

Microsoft.SharePoint.Administration namespace