この記事を使用して、最初のPowershellコマンドレットとSnapinを作成しました。そしてそれはうまくいきます。
ただし、4つのプロパティを持つ独自のデータクラスからオブジェクトのセットを返します。Powershellでは、デフォルトでこれらのプロパティの1つだけを表示する必要があります。そこで、記事のこの部分を使用して、この形式のファイルを作成しました。
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
    <ViewDefinitions>
        <View>
            <Name>RemoteFile</Name>
            <ViewSelectedBy>
                <TypeName>MyFullNamespace.RemoteFileData</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <TableHeaders>
                    <TableColumnHeader />
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>Filename</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
    </ViewDefinitions>
</Configuration>
Snapinでリンクします。
    public override string[] Formats
    {
        get { return new string[] { "MyFormatFilename.ps1xml" }; }
    }
しかし、installutilを使用してSnapinをインストールし、Add-PSSnapinを使用してコマンドレットを呼び出すと、オブジェクトのすべてのプロパティが表示されます。
私は何が間違っているのですか?