共用方式為


IFsrmFileScreenManager.CreateFileScreen Method (String)

 

Creates a file screen object.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

IFsrmFileScreen CreateFileScreen(
    string Path
)
IFsrmFileScreen^ CreateFileScreen(
    String^ Path
)
abstract CreateFileScreen : 
        Path:string -> IFsrmFileScreen
Function CreateFileScreen (
    Path As String
) As IFsrmFileScreen

Parameters

  • Path
    Type: System.String

    The local directory path to which the file screen applies. The string is limited to 260 characters.

Return Value

Type: Microsoft.Storage.IFsrmFileScreen

Returns a IFsrmFileScreen interface of the newly created file screen. To add the file screen to FSRM, call the Commit method.

Remarks

The screen applies to the directory and all its subdirectories (recursively). For example, a screen on P:\directory that blocks *.mp3 also blocks MP3 files on P:\directory\subdirectory.

If you create a file screen on P:\directory\subdirectory, the screen that you created on P:\directory still applies to P:\directory\subdirectory. If you do not want the screen on P:\directory to apply to P:\directory\subdirectory, you need to create a file screen exception.

See Also

FsrmFileScreenManager
IFsrmFileScreenManager Interface
Microsoft.Storage Namespace

Return to top