Пример #1
0
        public static SnwParameterInfo GetParameterInfo(SnwFunction function, string parameterName)
        {
            RfcParameterDesc parameterDescription;
            RfcErrorInfo     errorInfo;

            UnsafeNativeMethods.RfcGetParameterDescByName(function.DescriptionHandle, parameterName, out parameterDescription, out errorInfo);
            errorInfo.IfErrorThrowException();
            return(new SnwParameterInfo(parameterDescription));
        }
Пример #2
0
        public static IEnumerable <SnwParameterInfo> GetParameters(SnwFunction function)
        {
            var parameters = new List <SnwParameterInfo>();
            int count;

            RfcErrorInfo errorInfo;

            UnsafeNativeMethods.RfcGetParameterCount(function.DescriptionHandle, out count, out errorInfo);
            errorInfo.IfErrorThrowException();

            for (int i = 0; i < count; i++)
            {
                RfcParameterDesc parameterDescription;
                UnsafeNativeMethods.RfcGetParameterDescByIndex(function.DescriptionHandle, i, out parameterDescription, out errorInfo);
                parameters.Add(new SnwParameterInfo(parameterDescription));
            }
            return(parameters.ToArray());
        }
Пример #3
0
 protected SnwParametersContainer(SnwFunction container)
 {
     _containerHandle = container.DataHandle();
 }