共用方式為


SyndicationPerson.Clone 方法

定義

建立現有 SyndicationPerson 執行個體的複本。

public:
 virtual System::ServiceModel::Syndication::SyndicationPerson ^ Clone();
public virtual System.ServiceModel.Syndication.SyndicationPerson Clone ();
abstract member Clone : unit -> System.ServiceModel.Syndication.SyndicationPerson
override this.Clone : unit -> System.ServiceModel.Syndication.SyndicationPerson
Public Overridable Function Clone () As SyndicationPerson

傳回

新的 SyndicationPerson 執行個體。

範例

下列程式碼示範如何複製 SyndicationPerson 執行個體。

SyndicationPerson sp = new SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http://Jesper/Aaberg");
SyndicationPerson copy = sp.Clone();
Dim sp As New SyndicationPerson("jesper@contoso.com", "Jesper Aaberg", "http:' Jesper/Aaberg")
Dim copy As SyndicationPerson = sp.Clone()

適用於