SyndicationPerson.Email Eigenschaft

Definition

Ruft die E-Mail-Adresse der .SyndicationPerson

public:
 property System::String ^ Email { System::String ^ get(); void set(System::String ^ value); };
public string Email { get; set; }
member this.Email : string with get, set
Public Property Email As String

Eigenschaftswert

Die E-Mail-Adresse der Person.

Beispiele

Der folgende Code zeigt, wie die E-Mail-Adresse einer SyndicationPerson Instanz festgelegt wird.

SyndicationPerson sp = new SyndicationPerson();
sp.Email = "jesper@contoso.com";
Dim sp As New SyndicationPerson()
sp.Email = "jesper@contoso.com"

Der folgende XML-Code zeigt, wie die Email Serialisierung für Atom 1.0 erfolgt.

<author>
  <name>Jesper Aaberg</name>
  <uri>http://Jesper/Aaberg</uri>
  <email>Jesper.Aaberg@contoso.com</email>
</author>
<contributor>
  <name>Lene Aalling</name>
  <uri>http://Lene/Aaling</uri>
  <email>Lene.Aaling@contoso.com</email>
</contributor>

Der folgende XML-Code zeigt, wie die Email Serialisierung für RSS 2.0 erfolgt.

<a10:author>
  <a10:name>Lene Aalling</a10:name>
  <a10:uri>http://Lene/Aalling</a10:uri>
  <a10:email>Lene.Aalling@contoso.com</a10:email>
</a10:author>
  <a10:contributor>
  <a10:name>Jesper Aaberg</a10:name>
  <a10:uri>http://Jesper/Aaberg</a10:uri>
  <a10:email>Jesper.Aaberg@contoso.com</a10:email>
</a10:contributor>

Hinweise

Wenn sie in Atom 1.0 serialisiert wird, wird die SyndicationPerson Eigenschaft als <email> Element geschrieben. Das <email> Element wird innerhalb eines <author> Elements <contributor> oder Elements angezeigt, das von der Auflistung (Autoren oder Mitwirkenden) SyndicationPerson abhängt, der hinzugefügt wird.

Bei der Serialisierung in RSS 2.0 wird dieser Wert als <a10:email> Element geschrieben. Das <a10:email> Element wird in einem <managingEditor>, <a10:author>oder <a10:contributor> Element angezeigt. Wenn nur einer SyndicationPerson der Autorenauflistung hinzugefügt wird, wird das <email> Element innerhalb des <managingEditor> Elements geschrieben. Wenn der Autorenauflistung mehrere SyndicationPerson hinzugefügt werden, wird das <email> Element innerhalb eines <a10:author> Elements geschrieben. Wenn die Auflistung SyndicationPerson der Mitwirkenden hinzugefügt wird, wird das <email> Element innerhalb eines <a10:contributor> Elements geschrieben.

Gilt für: