Partilhar via


WebPart.MissingAssembly Property

NOTE: This API is now obsolete.

Gets or sets the message shown to the user when importing a Web Part if the assembly for the Web Part is not installed on the target server.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebPartStorageAttribute(Storage.Shared)> _
<ObsoleteAttribute("Use ImportErrorMessage instead.")> _
Public Property MissingAssembly As String
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As String

value = instance.MissingAssembly

instance.MissingAssembly = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebPartStorageAttribute(Storage.Shared)]
[ObsoleteAttribute("Use ImportErrorMessage instead.")]
public string MissingAssembly { get; set; }

Property Value

Type: System.String
This is the message that is shown to users when a Web Part's assembly is missing. If this property is not specified, a system default message is displayed.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace