Test-TypeDataMember

Tests if a type has an extended type member defined.

Syntax

Test-TypeDataMember [-TypeName] <String> [-MemberName] <String> [<CommonParameters>]

Description

Test-TypeDataMember tests if a type has an extended type member defined. If the type isn't found, you'll get an error.

Returns $true if the type is found and the member is defined. Otherwise, returns $false.

This function is new in Carbon 2.0.

Parameters

Name Type Description Required? Pipeline Input Default Value
TypeName String

The type name to check.

true false
MemberName String

The name of the member to check.

true false

Return Values

System.Boolean.

EXAMPLE 1

Test-TypeDataMember -TypeName 'Microsoft.Web.Administration.Site' -MemberName 'PhysicalPath'

Tests if the Microsoft.Web.Administration.Site type has a PhysicalPath extended type member defined.