다음을 통해 공유


SPFarm.RemoveObsoleteClass method

Removes all references to an obsolete class. This includes base classes and child objects from the configuration database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub RemoveObsoleteClass ( _
    classid As Guid _
)
'Usage
Dim instance As SPFarm
Dim classid As Guid

instance.RemoveObsoleteClass(classid)
public void RemoveObsoleteClass(
    Guid classid
)

Parameters

  • classid
    Type: System.Guid

    The class for which to remove all references.

Remarks

When a string contains sensitive information such as a password, there is a risk that the information might be revealed after it is used because your application cannot delete the data from computer memory. You can provide the farmPassword parameter as a SecureString object to help protect it from accidental or malicious exposure.

The username and password that you provide must be associated with a domain account.

See also

Reference

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace