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)); }
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()); }
protected SnwParametersContainer(SnwFunction container) { _containerHandle = container.DataHandle(); }