注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Remove-ContentTypeMapping
説明
コンテンツ タイプ マッピングを削除するコマンドです。
例
マッピングを削除する
# Set a content type mapping from "Image" to "Picture"
$mappingSettings = Set-ContentTypeMapping -Source Image -Destination Picture
# Add a content type mapping from "Video" to "Movie"
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source Video -Destination Movie
# Add a content type mapping for "My Custom Content Type" to ignore its destination
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "My Custom Content Type" -Ignore
# Remove the content type mapping for "Image"
Remove-ContentTypeMapping -MappingSettings $mappingSettings -Source Image
# Display the updated content type mappings
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings : My Custom Content Type -> <NO DESTINATION>
# Video -> Movie
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :
構文
Remove-ContentTypeMapping
-MappingSettings <MappingSettings>
-Source <String>
Remove-ContentTypeMapping
-MappingSettings <MappingSettings>
-FileFromFileSystem <SwitchParameter>
Remove-ContentTypeMapping
-MappingSettings <MappingSettings>
-FolderFromFileSystem <SwitchParameter>
パラメーター
-FileFromFileSystem <SwitchParameter>
ファイルシステムから取得したファイルの既定のコンテンツ タイプを削除するように指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | DefaultFileContentType |
エイリアス | None |
-FolderFromFileSystem <SwitchParameter>
ファイルシステムから取得したフォルダーの既定のコンテンツ タイプを削除するように指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | DefaultFolderContentType |
エイリアス | None |
-MappingSettings <MappingSettings>
マッピング設定を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | True (ByValue, ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Source <String>
移行元のコンテンツ タイプを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | Default |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
