Skip to content

M_CommandLine_Core_SpecificationPropertyExtensions_WithValue

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

SpecificationPropertyExtensions.WithValue Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static SpecificationProperty WithValue(
	this SpecificationProperty specProp,
	Maybe<Object> newValue
)

VB

<ExtensionAttribute>
Public Shared Function WithValue ( 
	specProp As SpecificationProperty,
	newValue As Maybe(Of Object)
) As SpecificationProperty

C++

public:
[ExtensionAttribute]
static SpecificationProperty^ WithValue(
	SpecificationProperty^ specProp, 
	Maybe<Object^>^ newValue
)

F#

[<ExtensionAttribute>]
static member WithValue : 
        specProp : SpecificationProperty * 
        newValue : Maybe<Object> -> SpecificationProperty 

Parameters

 

specProp
Type: CommandLine.Core.SpecificationProperty
newValue
Type: CSharpx.Maybe(Object)

Return Value

Type: SpecificationProperty

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SpecificationProperty. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

SpecificationPropertyExtensions Class
CommandLine.Core Namespace

Clone this wiki locally