Search Results for

    Show / Hide Table of Contents

    Class LogHelpers

    Class with extension methods that are used to help with logging

    Inheritance
    System.Object
    LogHelpers
    Namespace: PnP.Framework.Modernization.Telemetry
    Assembly: PnP.Framework.dll
    Syntax
    public static class LogHelpers : object

    Methods

    DetailSettingsAsLogEntries(PageTransformationInformation, String)

    Use reflection to read the object properties and detail the values

    Declaration
    public static List<LogEntry> DetailSettingsAsLogEntries(this PageTransformationInformation pti, string version)
    Parameters
    PageTransformationInformation pti

    PageTransformationInformation object

    System.String version

    Returns
    List<LogEntry>

    List of log records

    DisplaySharePointVersion(SPVersion)

    Display version for SharePoint

    Declaration
    public static string DisplaySharePointVersion(this SPVersion version)
    Parameters
    SPVersion version

    SharePoint version

    Returns
    System.String

    SharePoint version in string format

    FormatAsFriendlyTitle(String)

    Formats a string that has the format ThisIsAClassName and formats in a friendly way

    Declaration
    public static string FormatAsFriendlyTitle(this string value)
    Parameters
    System.String value

    string value

    Returns
    System.String

    Friendly string value

    ToYesNoString(Boolean)

    Converts boolean value to Yes/No string

    Declaration
    public static string ToYesNoString(this bool value)
    Parameters
    System.Boolean value

    Boolean value

    Returns
    System.String

    Yes or No

    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer