3
내가 Microsoft.Office.Interop.Outlook.ContactItem 개체의 속성을 열거하기 위해 노력하고있어이 코드 (의이 CI를 부르 자) :열거 전망 ContactItem 속성
System.Reflection.BindingFlags bf = System.Reflection.BindingFlags.Default;
foreach (System.Reflection.PropertyInfo pi in ci.GetType().GetProperties(bf))
{
Console.WriteLine("Property Info {0}", pi.Name);
}
을 실제로 여러 가지 시도했습니다 BindingFlag 값의 조합은 반환되지만 속성은 반환되지 않습니다.
다음은 ContactItem이 정의 된 방법입니다. using System.Runtime.InteropServices;
이using System;
using System.Runtime.InteropServices;
namespace Microsoft.Office.Interop.Outlook
{
[TypeLibType(4160)]
[Guid("00063021-0000-0000-C000-000000000046")]
public interface _ContactItem
{
[DispId(14848)]
string Account { get; set; }
[DispId(63511)]
Actions Actions { get; }
[DispId(14913)]
DateTime Anniversary { get; set; }
}
}
누군가가 나를 도울 수 :
namespace Microsoft.Office.Interop.Outlook
{
[Guid("00063021-0000-0000-C000-000000000046")]
[CoClass(typeof(ContactItemClass))]
public interface ContactItem : _ContactItem, ItemEvents_10_Event
{
}
}
이 _ContactItem가 정의하는 방법이다 (I은 단순 만 3 소품을 보관했습니다)? 사전에
감사
밥