ApiCore.Photos.PhotosFactory.UsePhotoAsCover C# (CSharp) Метод

UsePhotoAsCover() публичный Метод

public UsePhotoAsCover ( int photoId, int albumId, int ownerId ) : bool
photoId int
albumId int
ownerId int
Результат bool
        public bool UsePhotoAsCover(int photoId, int albumId, int? ownerId)
        {
            this.Manager.Method("photos.makeCover");
            this.Manager.Params("pid", photoId);
            this.Manager.Params("aid", albumId);
            if (ownerId != null)
            {
                this.Manager.Params("oid", ownerId);
            }
            XmlNode result = this.Manager.Execute().GetResponseXml();
            if (this.Manager.MethodSuccessed)
            {
                XmlUtils.UseNode(result);
                return XmlUtils.BoolVal();
            }
            return false;
        }