GetDefaultValueForInitialization(T) Method

ClientBase(Of TChannel).GetDefaultValueForInitialization(Of T) Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Replicates the behavior of the default keyword in C#.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Protected Function GetDefaultValueForInitialization(Of T) As T

Type Parameters

T

A C# type.

Return Value

Type: T
Returns Nothing if T is a reference type and zero if T is a numeric value type.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft