< Back

Test-CTypeDataMember

Sun Jan 12, 2020 11:34 pm

NAME Test-CTypeDataMember



SYNOPSIS

Tests if a type has an extended type member defined.





SYNTAX

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





DESCRIPTION

`Test-CTypeDataMember` 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

-TypeName <String>

The type name to check.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MemberName <String>

The name of the member to check.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





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



PS C:\\>Test-CTypeDataMember -TypeName 'Microsoft.Web.Administration.Site' -MemberName 'PhysicalPath'



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











RELATED LINKS