FlickrNet.Flickr.ReflectionGetMethodInfo C# (CSharp) Method

ReflectionGetMethodInfo() public method

Gets the method details for a given method.
public ReflectionGetMethodInfo ( string methodName ) : Method
methodName string The name of the method to retrieve.
return Method
        public Method ReflectionGetMethodInfo(string methodName)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.reflection.getMethodInfo");
            parameters.Add("api_key", _apiKey);
            parameters.Add("method_name", methodName);

            FlickrNet.Response response = GetResponseCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                return response.Method;
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr