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)

Syntax

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

value = instance.MissingAssembly

instance.MissingAssembly = value
[ObsoleteAttribute("Use ImportErrorMessage instead.")]
[WebPartStorageAttribute(Storage.Shared)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
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