CleanCode logo
sitemap
SEARCH:

CleanCode PowerShell Libraries v1.2.08 API: CleanCode » Assertion » Set-MaxExpressionDisplayLength

Set-MaxExpressionDisplayLength

NAME

Set-MaxExpressionDisplayLength

SYNOPSIS

Adjusts the column width of the echoed input express to Assert-Expression.

SYNTAX

Set-MaxExpressionDisplayLength [[-limit] <Int32>] [<CommonParameters>]

DESCRIPTION

Normally, Assert-Expression echoes up to 50 characters of its input expression, then reports failure details. Set-MaxExpressionDisplayLength lets you change that first column width.

PARAMETERS

-limit <Int32>
        Number of characters of the input expression to echo.

        Required?                    false
        Position?                    1
        Default value                50
        Accept pipeline input?       false
        Accept wildcard characters?  false

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, see 
        about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

INPUTS

None. You cannot pipe objects to Set-MaxExpressionDisplayLength.

OUTPUTS

None. Set-MaxExpressionDisplayLength does not generate any output.

NOTES



        This function is part of the CleanCode toolbox
        from http://cleancode.sourceforge.net/.

        Since CleanCode 1.1.01.

EXAMPLES


-------------------------- EXAMPLE 1 --------------------------

PS>Set-MaxExpressionDisplayLength 25

Reduce the first column width to 25.

-------------------------- EXAMPLE 2 --------------------------

PS>Set-MaxExpressionDisplayLength

Reset the first column width to the default (50).

RELATED LINKS

This documentation set was created with CleanCode's DocTreeGenerator.

Valid XHTML 1.0!Valid CSS!Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads
Copyright © 2001-2015 Michael Sorens • Contact usPrivacy Policy
Usage governed by Mozilla Public License 1.1 and CleanCode Courtesy License
CleanCode -- The Website for Clean DesignRevised 2015.12.16