Partager via


ProfilePropertyCheckValue, classe (Microsoft.SharePoint.Portal.WebControls)

Displays text conditionally based on whether a profile property is null.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<DefaultPropertyAttribute("Text")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public Class ProfilePropertyCheckValue
    Inherits Label
    Implements IDesignTimeHtmlProvider
'Utilisation
Dim instance As ProfilePropertyCheckValue
[DefaultPropertyAttribute("Text")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
public class ProfilePropertyCheckValue : Label, IDesignTimeHtmlProvider

Remarques

You can use this type to display something like the comma as in Dept,Title and if Title or the Dept is empty, just the Title or Dept without the comma.

Hiérarchie d'héritage

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
       System.Web.UI.WebControls.Label
        Microsoft.SharePoint.Portal.WebControls.ProfilePropertyCheckValue

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres ProfilePropertyCheckValue
Microsoft.SharePoint.Portal.WebControls, espace de noms