Partager via


UserInfo Class

User Information.When the object is serialized out as xml, its qualified name is x:userInfo.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.UserInfo

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class UserInfo _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As UserInfo
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class UserInfo : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ExtensionList <x:extLst>

[ISO/IEC 29500-1 1st Edition]

18.11.2.1 userInfo (User Information)

This element represents a user, and it stores information about a specific user as it relates to revisions.

Parent Elements

users (§18.11.2.2)

Child Elements

Subclause

extLst (Future Feature Data Storage Area)

§18.2.10

Attributes

Description

dateTime (Date Time)

Date and time when this user opened the shared workbook.

The possible values for this attribute are defined by the W3C XML Schema dateTime datatype.

guid (User Revisions GUID)

A globally unique identifier identifying the last set of revisions that this uses is synchronized to.

This attribute can be used by the spreadsheet application to ensure that revisions this user depends on aren't deleted.

The possible values for this attribute are defined by the ST_Guid simple type (§22.9.2.4).

id (User Id)

An integer representing an internal user id for this user.

This number can be negative.

The possible values for this attribute are defined by the W3C XML Schema int datatype.

name (User Name)

Display name for this user

[Note: User name strings should not be longer than 54 characters. end note]

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

[Note: The W3C XML Schema definition of this element’s content model (CT_SharedUser) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

UserInfo Members

DocumentFormat.OpenXml.Spreadsheet Namespace