CmisSync.Lib.Cmis.CmisRepositoryInfoConvenienceExtenders.ToLogString C# (CSharp) Метод

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

Creates a string containing all needed properties of a repository info from remote. If passed repoInfo is null, an empty string is returned.
public static ToLogString ( this repoInfo ) : string
repoInfo this Remote repository information.
Результат string
        public static string ToLogString(this IRepositoryInfo repoInfo) {
            if (repoInfo == null) {
                return string.Empty;
            }

            return string.Format(
                "Name: \"{1}\" Id: \"{2}\"{0}" +
                "Description: \"{3}\"{0}" +
                "ProductName: \"{4}\"{0}" +
                "ProductVersion: \"{5}\"{0}" +
                "Vendor: \"{6}\"{0}" +
                "Supported Cmis Versions: \"{7}\"{0}",
                Environment.NewLine,
                repoInfo.Name,
                repoInfo.Id,
                repoInfo.Description,
                repoInfo.ProductName,
                repoInfo.ProductVersion,
                repoInfo.VendorName,
                repoInfo.CmisVersionSupported);
        }
    }
CmisRepositoryInfoConvenienceExtenders