SenseNet.ContentRepository.Fields.ImageField.GetSizeUrlParams C# (CSharp) Метод

GetSizeUrlParams() публичный статический Метод

public static GetSizeUrlParams ( ImageRequestMode imageMode, int width, int height ) : string
imageMode ImageRequestMode
width int
height int
Результат string
        public static string GetSizeUrlParams(ImageRequestMode imageMode, int width, int height)
        {
            string sizeStr = string.Empty;
            if (width != 0 && width != 0)
            {
                switch (imageMode)
                {
                    case ImageRequestMode.BinaryData:
                        sizeStr = string.Format("&width={0}&height={1}", width, height);
                        break;
                    case ImageRequestMode.Reference:
                        sizeStr = string.Format("?dynamicThumbnail=1&width={0}&height={1}", width, height);
                        break;
                    default:
                        break;
                }
            }
            return sizeStr;
        }
        public bool SetThumbnailReference(Image thumbnailImage)