Compartir a través de


FilestreamAccessLevel Propiedad

Obtiene el objeto ConfigProperty que establece la opción de configuración Nivel de acceso de Filestream.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public ReadOnly Property FilestreamAccessLevel As ConfigProperty
    Get
'Uso
Dim instance As Configuration
Dim value As ConfigProperty

value = instance.FilestreamAccessLevel
public ConfigProperty FilestreamAccessLevel { get; }
public:
property ConfigProperty^ FilestreamAccessLevel {
    ConfigProperty^ get ();
}
member FilestreamAccessLevel : ConfigProperty
function get FilestreamAccessLevel () : ConfigProperty

Valor de la propiedad

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ConfigProperty
Objeto ConfigProperty que especifica los valores para la opción de configuración Nivel de acceso de secuencia de archivos.

Comentarios

The FilestreamAccessLevel property sets the FILESTREAM access level configuration option

Ejemplos

The following example displays the currently configured FILESTREAM access level for the local instance of SQL Server.

Power Shell

$dbServer = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
$configProperty = $dbServer.Configuration.FilestreamAccessLevel
Write-Host $configProperty.DisplayName " = " $configProperty.ConfigValue

C#

using System;
using System.Text;
using Microsoft.SqlServer.Management.Smo;

namespace SmoConfigurationProperty
{
    class Program
    {
        static void Main(string[] args)
        {
            Server server = new Server("(local)"); 
            ConfigProperty cfgProperty = 
                server.Configuration.FilestreamAccessLevel;

            Console.WriteLine("{0} = {1}\n", 
                cfgProperty.DisplayName,
                cfgProperty.ConfigValue);
        }
    }
}