CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

FileNames..::..CreateLicenseFileStream Method

Creates the license file stream.

Namespace:  CAS.Lib.CodeProtect.EnvironmentAccess
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public static Stream CreateLicenseFileStream(
	FileMode fileMode,
	FileAccess fileAccess,
	FileShare fileShare
)
Public Shared Function CreateLicenseFileStream ( _
	fileMode As FileMode, _
	fileAccess As FileAccess, _
	fileShare As FileShare _
) As Stream
public:
static Stream^ CreateLicenseFileStream(
	FileMode^ fileMode, 
	FileAccess^ fileAccess, 
	FileShare^ fileShare
)

Parameters

fileMode
Type: FileMode
The file mode.
fileAccess
Type: FileAccess
The file access.
fileShare
Type: FileShare
The file share.

Return Value

An object of Stream to be used to obtail the license

Exceptions


ExceptionCondition
FileNotFoundException The file cannot be found, such as when mode is FileMode.Truncate or FileMode.Open, and the file specified by path does not exist. The file must already exist in these modes.
SecurityExceptionThe caller does not have the required permission.
DirectoryNotFoundExceptionThe specified path is invalid, such as being on an unmapped drive.