FlickrNet.Flickr.PhotosGeoGetPerms C# (CSharp) Méthode

PhotosGeoGetPerms() public méthode

Get permissions for a photo.
public PhotosGeoGetPerms ( string photoId ) : GeoPermissions
photoId string The id of the photo to get permissions for.
Résultat GeoPermissions
        public GeoPermissions PhotosGeoGetPerms(string photoId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.geo.getPerms");
            parameters.Add("photo_id", photoId);

            FlickrNet.Response response = GetResponseCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                return new GeoPermissions(response.AllElements[0]);
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr