FilestreamShareName 属性

获取在 SQL Server 实例上存储 FILESTREAM 数据的 Windows 共享名称。

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

语法

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

value = instance.FilestreamShareName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string FilestreamShareName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ FilestreamShareName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member FilestreamShareName : string
function get FilestreamShareName () : String

属性值

类型:System. . :: . .String
一个 String 对象,该对象指定在 SQL Server 实例上存储 FILESTREAM 数据的 Windows 共享名称。

注释

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 share name that is storing filestream data is: " + srv.FileStreamShareName.ToString());

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The share name that is storing filestream data is:" $srv.FileStreamShareName