FileNames..::..CreateLicenseFileStream Method
Creates the license file stream.
Namespace:
CAS.Lib.CodeProtect.EnvironmentAccessAssembly: 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 licenseExceptions
Exception | Condition |
---|---|
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. |
SecurityException | The caller does not have the required permission. |
DirectoryNotFoundException | The specified path is invalid, such as being on an unmapped drive. |