DocumentBase.RemoveDocumentInformation Yöntem
Meta veri özellikleri ve yorumlar gibi bir belgeden kaldırır.
Ad alanı: Microsoft.Office.Tools.Word
Derleme: Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)
Sözdizimi
'Bildirim
Public Sub RemoveDocumentInformation ( _
removeDocInfoType As WdRemoveDocInfoType _
)
public void RemoveDocumentInformation(
WdRemoveDocInfoType removeDocInfoType
)
Parametreler
- removeDocInfoType
Tür: Microsoft.Office.Interop.Word.WdRemoveDocInfoType
Biri WdRemoveDocInfoType kaldırmak için hangi bilgileri belirten değer.
Örnekler
Aşağıdaki kod örneği geçerli belgenin belge özelliklerini kaldırır.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.
Private Sub RemoveDocumentProperties()
Me.RemoveDocumentInformation( _
Word.WdRemoveDocInfoType.wdRDIDocumentProperties)
End Sub
private void RemoveDocumentProperties()
{
this.RemoveDocumentInformation(
Word.WdRemoveDocInfoType.wdRDIDocumentProperties);
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.