SqlParameter.Direction Propriedade
Definição
Obtém ou define um valor que indica se o parâmetro é apenas de entrada, saída, bidirecional ou um parâmetro de valor retornado do procedimento armazenado.Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
public:
virtual property System::Data::ParameterDirection Direction { System::Data::ParameterDirection get(); void set(System::Data::ParameterDirection value); };
public:
property System::Data::ParameterDirection Direction { System::Data::ParameterDirection get(); void set(System::Data::ParameterDirection value); };
public override System.Data.ParameterDirection Direction { get; set; }
[System.Data.DataSysDescription("DataParameter_Direction")]
public System.Data.ParameterDirection Direction { get; set; }
member this.Direction : System.Data.ParameterDirection with get, set
[<System.Data.DataSysDescription("DataParameter_Direction")>]
member this.Direction : System.Data.ParameterDirection with get, set
Public Overrides Property Direction As ParameterDirection
Public Property Direction As ParameterDirection
Valor da propriedade
Um dos valores de ParameterDirection.One of the ParameterDirection values. O padrão é Input.The default is Input.
Implementações
- Atributos
Exceções
A propriedade não foi definida como um dos valores ParameterDirection válidos.The property was not set to one of the valid ParameterDirection values.
Exemplos
O exemplo a seguir cria um SqlParameter e define algumas de suas propriedades.The following example creates a SqlParameter and sets some of its properties.
Comandos e parâmetrosCommands and Parameters
Parâmetros DataAdapterDataAdapter Parameters
SQL Server e ADO.NETSQL Server and ADO.NET
Comentários
Se a ParameterDirection saída for, e a execução associada SqlCommand não retornar um valor, o SqlParameter conterá um valor nulo.If the ParameterDirection is output, and execution of the associated SqlCommand does not return a value, the SqlParameter contains a null value.
Output``InputOut ReturnValue os parâmetros, e retornados pela chamada ExecuteReader não podem ser acessados até que você feche o SqlDataReader .Output, InputOut, and ReturnValue parameters returned by calling ExecuteReader cannot be accessed until you close the SqlDataReader.