共用方式為


BuildDefinitionXmlSerializer.FromXml Method

Deserializes a build definition from XML form that was previously serialized by a call to ToXml.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'Declaration
Public Shared Function FromXml ( _
    buildServer As IBuildServer, _
    reader As XmlReader _
) As IBuildDefinition
public static IBuildDefinition FromXml(
    IBuildServer buildServer,
    XmlReader reader
)
public:
static IBuildDefinition^ FromXml(
    IBuildServer^ buildServer, 
    XmlReader^ reader
)
static member FromXml : 
        buildServer:IBuildServer * 
        reader:XmlReader -> IBuildDefinition
public static function FromXml(
    buildServer : IBuildServer, 
    reader : XmlReader
) : IBuildDefinition

Parameters

  • reader
    Type: System.Xml.XmlReader

    The System.Xml.XmlReader from which the definition should be read

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildDefinition
An exact copy of the previously serialized build definition object

.NET Framework Security

See Also

Reference

BuildDefinitionXmlSerializer Class

Microsoft.TeamFoundation.Build.Client Namespace