Solution4.FullName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对象文件的完整路径和名称。
public:
property System::String ^ FullName { System::String ^ get(); };
public:
property Platform::String ^ FullName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(28)]
public string FullName { [System.Runtime.InteropServices.DispId(28)] get; }
[<System.Runtime.InteropServices.DispId(28)>]
[<get: System.Runtime.InteropServices.DispId(28)>]
member this.FullName : string
Public ReadOnly Property FullName As String
属性值
获取一个表示对象文件的完整路径和名称的字符串。
实现
- 属性
示例
Sub SolutionCountExample(ByVal dte As DTE2)
' Count the projects in a solution.
' Open a solution in Visual Studio before running this
' example.
Try
Dim soln As Solution4 = CType(_applicationObject.Solution, _
Solution4)
' List the number of projects.
MsgBox("Number of projects in" & soln.FullName & " is: " _
& vbCr & soln.Count)
Catch ex As System.Exception
MsgBox(ex.ToString)
End Try
End Sub
using System.Windows.Forms;
public void SolutionCount(DTE2 dte)
{
// Count the projects in a solution.
// Open a soultion in Visual Studio before running this
// example.
Try
{
Solution4 soln = (Solution4)_applicationObject.Solution;
// List the number of projects.
MessageBox.Show("Number of projects in" + soln.FullName
+ " is: " + "\n" + soln.Count);
}
catch(SystemException ex)
{
MessageBox.Show("ERROR: " + ex);
}
}
注解
FullName FileName 在的某些版本中,该属性称为属性 Visual Studio 。