FilestreamLevel 属性

获取在 SQL Server 实例上指定的 FILESTREAM 访问的级别。

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property FilestreamLevel As FileStreamEffectiveLevel
    Get
用法
Dim instance As Server
Dim value As FileStreamEffectiveLevel

value = instance.FilestreamLevel
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public FileStreamEffectiveLevel FilestreamLevel { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property FileStreamEffectiveLevel FilestreamLevel {
    FileStreamEffectiveLevel get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member FilestreamLevel : FileStreamEffectiveLevel
function get FilestreamLevel () : FileStreamEffectiveLevel

属性值

类型:Microsoft.SqlServer.Management.Smo. . :: . .FileStreamEffectiveLevel
一个 StreamAccessLevel 对象,该对象指定在 SQL Server 实例上启用的流访问的类型。

注释

File streaming can be enabled for Transact-SQL and Win32 file access. For more information, see FILESTREAM 概述.

示例

C#

Server srv = new Server("(local)");
Console.WriteLine("The file stream access level is: " + srv.FileStreamLevel.ToString());

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The file stream access level is:" $srv.FileStreamLevel