Calling Methods

Methods perform specific tasks related to the object, such as issuing a Checkpoint on a database or requesting an enumerated list of logons for the instance of Microsoft SQL Server.

Methods perform an operation on an object. Methods can take parameters and often have a return value. The return value can be a simple data type, a complex object, or a structure that contains many members.

Use exception handling to detect whether the method has been successful. For more information, see Handling SMO Exceptions.

참고 항목

작업

How to: Use a Simple SMO Method in Visual Basic .NET
How to: Use an SMO Method with a Parameter in Visual Basic .NET
How to: Use an Enumeration Method that Returns a DataTable Object in Visual Basic .NET
How to: Construct an Object in Visual Basic .NET
How to: Copy an SMO Object in Visual Basic .NET

도움말 및 정보

SQL Server 2005 지원 받기