Tests if a type has an extended type member defined.
Test-TypeDataMember [-TypeName] <String> [-MemberName] <String> [<CommonParameters>]
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.
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 |
Test-TypeDataMember -TypeName 'Microsoft.Web.Administration.Site' -MemberName 'PhysicalPath'
Tests if the Microsoft.Web.Administration.Site
type has a PhysicalPath
extended type member defined.