Show / Hide Table of Contents

    ParamValue.Direction Property

    .NET Standard 2.x

    Gets the direction type of the parameter.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

    public ParameterDirection Direction { get; }
    

    Property Value

    System.Data.ParameterDirection

    The direction type of the parameter.

    Examples

    The following code example gets the direction of the ParamValue object.

    using SnapObjects.Data;
    using System;
    using System.Data;
    
    namespace Appeon.ApiDoc.ParamValueExamples
    {
        public class DirectionExample
        {
            private readonly SchoolContext _context;
    
            public DirectionExample(SchoolContext context)
            {
                _context = context;
            }
    
            public void Example()
            {
                // The parameter is capable of both input and output.
                var param = ParamValue.New<string>(
                    "param1", "Economics", ParameterDirection.InputOutput);
    
                // Gets and shows the direction of the ParamValue object.
                Console.WriteLine("ParamValue.Direction = {0}", param.Direction);
    
                /*This code produces the following output:
                
                ParamValue.Direction = InputOutput
                */
            }
        }
    }
    

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon