Represents the ImageUrl object.
示例#1
0
            /// <summary>
            /// Builds the ImageUrl.
            /// </summary>
            /// <returns> the ImageUrl</returns>
            public virtual ImageUrl Build()
            {
                if (imageId == null)
                {
                    throw new MemberAccessException("An imageId is required.");
                }

                ImageUrl imageUrl = new ImageUrl();

                imageUrl.ImageId = imageId;
                imageUrl.Width   = width;
                imageUrl.Height  = height;
                return(imageUrl);
            }
            /// <summary>
            /// Builds the ImageUrl.
            /// </summary>
            /// <returns> the ImageUrl</returns>
            public virtual ImageUrl Build()
            {
                if (imageId == null)
                {
                    throw new MemberAccessException("An imageId is required.");
                }

                ImageUrl imageUrl = new ImageUrl();
                imageUrl.ImageId = imageId;
                imageUrl.Width = width;
                imageUrl.Height = height;
                return imageUrl;
            }