CodeMemberMethod.PrivateImplementationType 屬性

定義

取得或設定這個方法之介面的資料型別 (如果是私用),實作其方法 (如果有的話)。Gets or sets the data type of the interface this method, if private, implements a method of, if any.

public:
 property System::CodeDom::CodeTypeReference ^ PrivateImplementationType { System::CodeDom::CodeTypeReference ^ get(); void set(System::CodeDom::CodeTypeReference ^ value); };
public System.CodeDom.CodeTypeReference PrivateImplementationType { get; set; }
member this.PrivateImplementationType : System.CodeDom.CodeTypeReference with get, set
Public Property PrivateImplementationType As CodeTypeReference

屬性值

CodeTypeReference,表示介面的資料型別,方式是使用這個 CodeMemberMethod 實作所表示之宣告的私用方法。A CodeTypeReference that indicates the data type of the interface with the method that the private method whose declaration is represented by this CodeMemberMethod implements.

備註

如果這CodeMemberMethod代表私用方法的宣告,而且方法會實作為介面的方法,則這個屬性應該會指出方法正在實作為之方法的介面類別型。If this CodeMemberMethod represents the declaration of a private method and the method implements a method of an interface, this property should indicate the interface type that the method is implementing a method of.

這個屬性所參考的型別必須是介面。The type referenced by this property must be an interface.

適用於