WorkbookBase.ContentTypeProperties الخاصية
يحصل على مجموعة من الخصائص التي تصف بيانات التعريف التي هو المخزنة في مصنف.
مساحة الاسم: Microsoft.Office.Tools.Excel
التجميع: Microsoft.Office.Tools.Excel.v4.0.Utilities (في Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
بناء الجملة
'إقرار
Public ReadOnly Property ContentTypeProperties As MetaProperties
Get
public MetaProperties ContentTypeProperties { get; }
قيمة الخاصية
النوع: MetaProperties
Microsoft.Office.Core.MetaPropertiesالمجموعة التي تحتوي على الخصائص التي تصف بيانات التعريف التي هو المخزنة في مصنف.
أمثلة
مثال التعليمة البرمجية التالية باسترداد بيانات التعريف المقترنة الحالية مصنف. يوضح المثال العدد الإجمالي لخصائص بيانات التعريف التي تم العثور على متبوعاً باسم و القيمة لكل خاصية. لتشغيل هذا المثال، يجب أن تقوم بينشر مصنف إلى مكتبة مستندات Microsoft المكتب SharePoint الخادم وتوفر خاصية مخصصة لبيانات تعريف لهذا مصنف. على سبيل المثال، يمكنك إضافة عمود في مكتبة المستندات حيث مصنف هو publهوhed. لمزيد من المعلومات حول خصائص نوع المحتوى، الرجاء الرجوع إلى الوثائق Microsoft المكتب SharePoint الخادم.
Th هو المثال هو لتخصيص المستوى مستند.
Private Sub GetContentTypeProperties()
Dim props As Office.MetaProperties = Me.ContentTypeProperties
MessageBox.Show("Number of metadata properties found: " _
+ props.Count.ToString())
For Each prop As Office.MetaProperty In props
MessageBox.Show("Metadata property name: " + prop.Name _
+ vbCrLf + "Metadata property value: " _
+ prop.Value.ToString())
Next
End Sub
private void GetContentTypeProperties()
{
Office.MetaProperties props = this.ContentTypeProperties;
MessageBox.Show("Number of metadata properties found: "
+ props.Count.ToString());
foreach (Office.MetaProperty prop in props)
{
MessageBox.Show("Metadata property name: " + prop.Name
+ "\r\nMetadata property value: "
+ prop.Value.ToString());
}
}
أمن NET Framework.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.